diff options
author | Jordan Justen <[email protected]> | 2018-10-12 16:18:37 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2019-08-28 13:38:33 -0700 |
commit | b42a05b43655cab33b3f321f174ee95b1a0b7fd0 (patch) | |
tree | 63f1e2ed469a16ff9a108e4984a4798175704e44 /src/intel/genxml | |
parent | 531563b64b91a80147be514c794c773c0718ad00 (diff) |
intel/genxml: Build gen12 genxml
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/genxml')
-rw-r--r-- | src/intel/genxml/genX_pack.h | 2 | ||||
-rw-r--r-- | src/intel/genxml/gen_bits_header.py | 1 | ||||
-rw-r--r-- | src/intel/genxml/gen_macros.h | 3 | ||||
-rw-r--r-- | src/intel/genxml/meson.build | 1 |
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( |