summaryrefslogtreecommitdiffstats
path: root/src/intel/genxml
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel/genxml')
-rw-r--r--src/intel/genxml/genX_pack.h2
-rw-r--r--src/intel/genxml/gen_bits_header.py1
-rw-r--r--src/intel/genxml/gen_macros.h3
-rw-r--r--src/intel/genxml/meson.build1
4 files changed, 7 insertions, 0 deletions
diff --git a/src/intel/genxml/genX_pack.h b/src/intel/genxml/genX_pack.h
index cf39973db14..bddab6754f4 100644
--- a/src/intel/genxml/genX_pack.h
+++ b/src/intel/genxml/genX_pack.h
@@ -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
diff --git a/src/intel/genxml/gen_bits_header.py b/src/intel/genxml/gen_bits_header.py
index 6dd0d7c6b75..38e9a6c74f1 100644
--- a/src/intel/genxml/gen_bits_header.py
+++ b/src/intel/genxml/gen_bits_header.py
@@ -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)};
diff --git a/src/intel/genxml/gen_macros.h b/src/intel/genxml/gen_macros.h
index 43449a41a46..9d0172d041c 100644
--- a/src/intel/genxml/gen_macros.h
+++ b/src/intel/genxml/gen_macros.h
@@ -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
diff --git a/src/intel/genxml/meson.build b/src/intel/genxml/meson.build
index 10d3149b8f5..60ef69ca53c 100644
--- a/src/intel/genxml/meson.build
+++ b/src/intel/genxml/meson.build
@@ -29,6 +29,7 @@ gen_xml_files = [
'gen9.xml',
'gen10.xml',
'gen11.xml',
+ 'gen12.xml',
]
genX_xml_h = custom_target(