anv: Build for Xe3

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:
Jordan Justen 2023-08-02 01:52:05 -07:00 committed by Marge Bot
parent 35ace9d4e2
commit b7560fa048
4 changed files with 12 additions and 2 deletions

View file

@ -6403,6 +6403,9 @@ VK_DEFINE_NONDISP_HANDLE_CASTS(anv_video_session_params, vk.base,
case 200: \
genX_thing = &gfx20_##thing; \
break; \
case 300: \
genX_thing = &gfx30_##thing; \
break; \
default: \
unreachable("Unknown hardware generation"); \
} \
@ -6428,6 +6431,9 @@ VK_DEFINE_NONDISP_HANDLE_CASTS(anv_video_session_params, vk.base,
# define genX(x) gfx20_##x
# include "anv_genX.h"
# undef genX
# define genX(x) gfx30_##x
# include "anv_genX.h"
# undef genX
#endif
#ifdef __cplusplus

View file

@ -18,6 +18,8 @@
# include "intel_gfx125_shaders_code.h"
#elif GFX_VERx10 == 200
# include "intel_gfx20_shaders_code.h"
#elif GFX_VERx10 == 300
# include "intel_gfx30_shaders_code.h"
#else
# error "Unsupported generation"
#endif

View file

@ -83,7 +83,8 @@ foreach grl_file : grl_grl_files
endforeach
grl_genX_libs = []
foreach t : [['125', 'gfx125', 'dg2'], ['200', 'gfx20', 'lnl'], ]
foreach t : [['125', 'gfx125', 'dg2'], ['200', 'gfx20', 'lnl'],
['300', 'gfx30', 'ptl'], ]
verX10 = t[0]
genX_prefix = t[1]
platform = t[2]

View file

@ -23,6 +23,7 @@ anv_entrypoints = custom_target(
'--device-prefix', 'gfx12',
'--device-prefix', 'gfx125',
'--device-prefix', 'gfx20',
'--device-prefix', 'gfx30',
'--device-prefix', 'anv_doom64',
'--device-prefix', 'anv_hitman3',
'--device-prefix', 'anv_android',
@ -103,7 +104,7 @@ if with_intel_vk_rt
anv_per_hw_ver_files += files('genX_acceleration_structure.c',)
endif
foreach _gfx_ver : ['90', '110', '120', '125', '200']
foreach _gfx_ver : ['90', '110', '120', '125', '200', '300']
libanv_per_hw_ver_libs += static_library(
'anv_per_hw_ver@0@'.format(_gfx_ver),
[anv_per_hw_ver_files, anv_entrypoints[0]],