diff options
author | Nicolai Hähnle <[email protected]> | 2017-06-29 17:31:57 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-08-02 09:50:58 +0200 |
commit | 0f8c5de8690e7c87aa2e24383065efaca7e6fe78 (patch) | |
tree | 8d5016c420b51feca47957d001c17d78731d971d /src/gallium/drivers | |
parent | 1e334a396c3bfac6d2ea2871db9bf5e9abc42934 (diff) |
radeonsi: prepare for driver-specific driconf options
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/Makefile.am | 13 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/Makefile.sources | 4 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/driinfo_radeonsi.h | 1 |
3 files changed, 18 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/Makefile.am b/src/gallium/drivers/radeonsi/Makefile.am index 1edbd0fd5dd..a3007702014 100644 --- a/src/gallium/drivers/radeonsi/Makefile.am +++ b/src/gallium/drivers/radeonsi/Makefile.am @@ -34,3 +34,16 @@ AM_CFLAGS = \ noinst_LTLIBRARIES = libradeonsi.la libradeonsi_la_SOURCES = $(C_SOURCES) + +GEN_DRIINFO_INPUTS = \ + $(top_srcdir)/src/gallium/auxiliary/pipe-loader/driinfo_gallium.h \ + $(srcdir)/driinfo_radeonsi.h + +PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS) +MERGE_DRIINFO = $(top_srcdir)/src/util/merge_driinfo.py + +si_driinfo.h: $(MERGE_DRIINFO) $(GEN_DRIINFO_INPUTS) + $(PYTHON_GEN) $(MERGE_DRIINFO) $(GEN_DRIINFO_INPUTS) > $@ || ($(RM) $@; false) + +BUILT_SOURCES = $(GENERATED_SOURCES) +CLEANFILES = $(GENERATED_SOURCES) diff --git a/src/gallium/drivers/radeonsi/Makefile.sources b/src/gallium/drivers/radeonsi/Makefile.sources index 1587d646215..6dc6da04e3a 100644 --- a/src/gallium/drivers/radeonsi/Makefile.sources +++ b/src/gallium/drivers/radeonsi/Makefile.sources @@ -1,4 +1,8 @@ +GENERATED_SOURCES := \ + si_driinfo.h + C_SOURCES := \ + $(GENERATED_SOURCES) \ cik_sdma.c \ si_blit.c \ si_compute.c \ diff --git a/src/gallium/drivers/radeonsi/driinfo_radeonsi.h b/src/gallium/drivers/radeonsi/driinfo_radeonsi.h new file mode 100644 index 00000000000..a358f0263e4 --- /dev/null +++ b/src/gallium/drivers/radeonsi/driinfo_radeonsi.h @@ -0,0 +1 @@ +// DriConf options specific to radeonsi |