summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnuj Phogat <[email protected]>2017-05-10 10:50:15 -0700
committerAnuj Phogat <[email protected]>2018-02-15 16:14:55 -0800
commit165a68b05aab6e4c75c83ec664be33c4e97f7f67 (patch)
treeaef6fdaa7c73aae14dc4fbe70ac2c82d9d2fc152
parent7ed27d8cbf2febbe69ce1586d5d67c1bba126bc7 (diff)
intel/genxml/icl: Generate packing headers
Move build system changes in to one patch (Ken, Emil) Signed-off-by: Anuj Phogat <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Dylan Baker <[email protected]>
-rw-r--r--src/intel/Android.genxml.mk5
-rw-r--r--src/intel/Makefile.sources6
-rw-r--r--src/intel/genxml/genX_pack.h2
-rw-r--r--src/intel/genxml/gen_macros.h3
-rw-r--r--src/intel/genxml/meson.build1
5 files changed, 15 insertions, 2 deletions
diff --git a/src/intel/Android.genxml.mk b/src/intel/Android.genxml.mk
index e4d8dd8b945..8b867920c32 100644
--- a/src/intel/Android.genxml.mk
+++ b/src/intel/Android.genxml.mk
@@ -101,6 +101,11 @@ $(intermediates)/genxml/gen10_pack.h: PRIVATE_XML := $(LOCAL_PATH)/genxml/gen10.
$(intermediates)/genxml/gen10_pack.h: $(LOCAL_PATH)/genxml/gen10.xml $(LOCAL_PATH)/genxml/gen_pack_header.py
$(call header-gen)
+$(intermediates)/genxml/gen11_pack.h: PRIVATE_SCRIPT := $(MESA_PYTHON2) $(LOCAL_PATH)/genxml/gen_pack_header.py
+$(intermediates)/genxml/gen11_pack.h: PRIVATE_XML := $(LOCAL_PATH)/genxml/gen11.xml
+$(intermediates)/genxml/gen11_pack.h: $(LOCAL_PATH)/genxml/gen11.xml $(LOCAL_PATH)/genxml/gen_pack_header.py
+ $(call header-gen)
+
$(intermediates)/genxml/genX_xml.h: $(addprefix $(MESA_TOP)/src/intel/,$(GENXML_XML_FILES)) $(MESA_TOP)/src/intel/genxml/gen_zipped_file.py
@mkdir -p $(dir $@)
@echo "Gen Header: $(PRIVATE_MODULE) <= $(notdir $(@))"
diff --git a/src/intel/Makefile.sources b/src/intel/Makefile.sources
index 9595bf42582..4c0240bdf17 100644
--- a/src/intel/Makefile.sources
+++ b/src/intel/Makefile.sources
@@ -132,7 +132,8 @@ GENXML_XML_FILES = \
genxml/gen75.xml \
genxml/gen8.xml \
genxml/gen9.xml \
- genxml/gen10.xml
+ genxml/gen10.xml \
+ genxml/gen11.xml
GENXML_GENERATED_PACK_FILES = \
genxml/gen4_pack.h \
@@ -143,7 +144,8 @@ GENXML_GENERATED_PACK_FILES = \
genxml/gen75_pack.h \
genxml/gen8_pack.h \
genxml/gen9_pack.h \
- genxml/gen10_pack.h
+ genxml/gen10_pack.h \
+ genxml/gen11_pack.h
GENXML_GENERATED_FILES = \
$(GENXML_GENERATED_PACK_FILES) \
diff --git a/src/intel/genxml/genX_pack.h b/src/intel/genxml/genX_pack.h
index 187e75c5987..cf39973db14 100644
--- a/src/intel/genxml/genX_pack.h
+++ b/src/intel/genxml/genX_pack.h
@@ -46,6 +46,8 @@
# include "genxml/gen9_pack.h"
#elif (GEN_VERSIONx10 == 100)
# include "genxml/gen10_pack.h"
+#elif (GEN_VERSIONx10 == 110)
+# include "genxml/gen11_pack.h"
#else
# error "Need to add a pack header include for this gen"
#endif
diff --git a/src/intel/genxml/gen_macros.h b/src/intel/genxml/gen_macros.h
index a85c08250c8..43449a41a46 100644
--- a/src/intel/genxml/gen_macros.h
+++ b/src/intel/genxml/gen_macros.h
@@ -88,6 +88,9 @@
#elif (GEN_VERSIONx10 == 100)
# define GENX(X) GEN10_##X
# define genX(x) gen10_##x
+#elif (GEN_VERSIONx10 == 110)
+# define GENX(X) GEN11_##X
+# define genX(x) gen11_##x
#else
# error "Need to add prefixing macros for this gen"
#endif
diff --git a/src/intel/genxml/meson.build b/src/intel/genxml/meson.build
index 371f85307c8..970d5654713 100644
--- a/src/intel/genxml/meson.build
+++ b/src/intel/genxml/meson.build
@@ -28,6 +28,7 @@ gen_xml_files = [
'gen8.xml',
'gen9.xml',
'gen10.xml',
+ 'gen11.xml',
]
genX_xml_h = custom_target(