intel/genxml: Build gen12 genxml
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 12 Oct 2018 23:18:37 +0000 (16:18 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 28 Aug 2019 20:38:33 +0000 (13:38 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/Makefile.sources
src/intel/genxml/genX_pack.h
src/intel/genxml/gen_bits_header.py
src/intel/genxml/gen_macros.h
src/intel/genxml/meson.build

index 86d900a0bac1717b1b15119333fd090bad524974..79f86a59806a0fc21051a4d6d5d2d441c7b22b4e 100644 (file)
@@ -143,7 +143,8 @@ GENXML_XML_FILES = \
        genxml/gen8.xml \
        genxml/gen9.xml \
        genxml/gen10.xml \
-       genxml/gen11.xml
+       genxml/gen11.xml \
+       genxml/gen12.xml
 
 GENXML_GENERATED_PACK_FILES = \
        genxml/gen4_pack.h \
@@ -155,7 +156,8 @@ GENXML_GENERATED_PACK_FILES = \
        genxml/gen8_pack.h \
        genxml/gen9_pack.h \
        genxml/gen10_pack.h \
-       genxml/gen11_pack.h
+       genxml/gen11_pack.h \
+       genxml/gen12_pack.h
 
 GENXML_GENERATED_FILES = \
        $(GENXML_GENERATED_PACK_FILES) \
index cf39973db1405fcbf27eab9e67264340875ecdac..bddab6754f49d469eb274d73745a97dbda08f0ca 100644 (file)
@@ -48,6 +48,8 @@
 #  include "genxml/gen10_pack.h"
 #elif (GEN_VERSIONx10 == 110)
 #  include "genxml/gen11_pack.h"
+#elif (GEN_VERSIONx10 == 120)
+#  include "genxml/gen12_pack.h"
 #else
 #  error "Need to add a pack header include for this gen"
 #endif
index 6dd0d7c6b75890dbbde7f83f7ff822ab0cb7dd30..38e9a6c74f1def2095d6686e56d794d32f5b1b66 100644 (file)
@@ -80,6 +80,7 @@ static inline uint32_t ATTRIBUTE_PURE
 ${item.token_name}_${prop}(const struct gen_device_info *devinfo)
 {
    switch (devinfo->gen) {
+   case 12: return ${item.get_prop(prop, 12)};
    case 11: return ${item.get_prop(prop, 11)};
    case 10: return ${item.get_prop(prop, 10)};
    case 9: return ${item.get_prop(prop, 9)};
index 43449a41a461061ca0c2881d6add79f91ef9d256..9d0172d041c58c06962e4138559a8baf7047f122 100644 (file)
@@ -91,6 +91,9 @@
 #elif (GEN_VERSIONx10 == 110)
 #  define GENX(X) GEN11_##X
 #  define genX(x) gen11_##x
+#elif (GEN_VERSIONx10 == 120)
+#  define GENX(X) GEN12_##X
+#  define genX(x) gen12_##x
 #else
 #  error "Need to add prefixing macros for this gen"
 #endif
index 10d3149b8f50b5da975d43fca216542d4268f8fb..60ef69ca53c01790e19a776eebc0820a3af3f134 100644 (file)
@@ -29,6 +29,7 @@ gen_xml_files = [
   'gen9.xml',
   'gen10.xml',
   'gen11.xml',
+  'gen12.xml',
 ]
 
 genX_xml_h = custom_target(