summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2023-08-02 01:52:05 -0700
committerJordan Justen <jordan.l.justen@intel.com>2024-10-26 00:25:51 -0700
commit21c2ebaaa6086d898c2977d2f94a6a26b0033322 (patch)
tree0508285a7eb49b5452c68c4214b6a085e42c3faa
parentbfe8222a3d7c568a852d8be85c163b79f5c18955 (diff)
anv: Build for Xe3build-xe3
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
-rw-r--r--src/intel/vulkan/anv_private.h6
-rw-r--r--src/intel/vulkan/genX_internal_kernels.c2
-rw-r--r--src/intel/vulkan/grl/meson.build3
-rw-r--r--src/intel/vulkan/meson.build3
4 files changed, 12 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index 76294ff4add..0df662f93e6 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -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
diff --git a/src/intel/vulkan/genX_internal_kernels.c b/src/intel/vulkan/genX_internal_kernels.c
index a476e2bcd04..8b8ca0f8e6b 100644
--- a/src/intel/vulkan/genX_internal_kernels.c
+++ b/src/intel/vulkan/genX_internal_kernels.c
@@ -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
diff --git a/src/intel/vulkan/grl/meson.build b/src/intel/vulkan/grl/meson.build
index 4423e370f47..9484a282eb9 100644
--- a/src/intel/vulkan/grl/meson.build
+++ b/src/intel/vulkan/grl/meson.build
@@ -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]
diff --git a/src/intel/vulkan/meson.build b/src/intel/vulkan/meson.build
index 9f9eb3632dd..004aba87e89 100644
--- a/src/intel/vulkan/meson.build
+++ b/src/intel/vulkan/meson.build
@@ -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]],