mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
intel/genxml: Start Xe3 support
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31838>
This commit is contained in:
parent
2d15c23e4a
commit
acb1c45a8b
9 changed files with 22 additions and 0 deletions
4
src/intel/genxml/gen30.xml
Normal file
4
src/intel/genxml/gen30.xml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<genxml name="XE3" gen="30">
|
||||
<import name="gen20.xml" />
|
||||
</genxml>
|
||||
4
src/intel/genxml/gen30_rt.xml
Normal file
4
src/intel/genxml/gen30_rt.xml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<genxml name="RT" gen="30">
|
||||
<import name="gen20_rt.xml" />
|
||||
</genxml>
|
||||
|
|
@ -33,6 +33,8 @@
|
|||
# include "genxml/gen125_cl_pack.h"
|
||||
#elif (GFX_VERx10 == 200)
|
||||
# include "genxml/gen20_cl_pack.h"
|
||||
#elif (GFX_VERx10 == 300)
|
||||
# include "genxml/gen30_cl_pack.h"
|
||||
#else
|
||||
# error "Need to add a pack header include for this gen"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -52,6 +52,8 @@
|
|||
# include "genxml/gen125_pack.h"
|
||||
#elif (GFX_VERx10 == 200)
|
||||
# include "genxml/gen20_pack.h"
|
||||
#elif (GFX_VERx10 == 300)
|
||||
# include "genxml/gen30_pack.h"
|
||||
#else
|
||||
# error "Need to add a pack header include for this gen"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -52,6 +52,8 @@
|
|||
# include "genxml/gen125_rt_pack.h"
|
||||
#elif (GFX_VERx10 == 200)
|
||||
# include "genxml/gen20_rt_pack.h"
|
||||
#elif (GFX_VERx10 == 300)
|
||||
# include "genxml/gen30_rt_pack.h"
|
||||
#else
|
||||
# error "Need to add a pack header include for this gen"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ static inline uint32_t ATTRIBUTE_PURE
|
|||
${item.token_name}_${prop}(const struct intel_device_info *devinfo)
|
||||
{
|
||||
switch (devinfo->verx10) {
|
||||
case 300: return ${item.get_prop(prop, 30)};
|
||||
case 200: return ${item.get_prop(prop, 20)};
|
||||
case 125: return ${item.get_prop(prop, 12.5)};
|
||||
case 120: return ${item.get_prop(prop, 12)};
|
||||
|
|
|
|||
|
|
@ -95,6 +95,9 @@
|
|||
#elif (GFX_VERx10 == 200)
|
||||
# define GENX(X) GFX20_##X
|
||||
# define genX(x) gfx20_##x
|
||||
#elif (GFX_VERx10 == 300)
|
||||
# define GENX(X) GFX30_##X
|
||||
# define genX(x) gfx30_##x
|
||||
#else
|
||||
# error "Need to add prefixing macros for this gen"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -194,6 +194,8 @@ default_imports = OrderedDict([
|
|||
('gen125.xml', ('gen12.xml',)),
|
||||
('gen20.xml', ('gen125.xml',)),
|
||||
('gen20_rt.xml', ('gen125_rt.xml',)),
|
||||
('gen30.xml', ('gen20.xml',)),
|
||||
('gen30_rt.xml', ('gen20_rt.xml',)),
|
||||
])
|
||||
known_genxml_files = list(default_imports.keys())
|
||||
|
||||
|
|
|
|||
|
|
@ -14,11 +14,13 @@ gen_xml_files = [
|
|||
'gen12.xml',
|
||||
'gen125.xml',
|
||||
'gen20.xml',
|
||||
'gen30.xml',
|
||||
]
|
||||
|
||||
gen_xml_rt_files = [
|
||||
'gen125_rt.xml',
|
||||
'gen20_rt.xml',
|
||||
'gen30_rt.xml',
|
||||
]
|
||||
|
||||
gen_pack_header_deps = files('intel_genxml.py', 'util.py')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue