Skip to content

Commit ad11927

Browse files
authored
opt: add SPV_EXT_mesh_shader to opt allowlist (KhronosGroup#5551)
Add this extension to the allowlist, allowing DCE and other optimizations on modules exposing this. Note: NV equivalent is already allowed.
1 parent 27ffe97 commit ad11927

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

source/opt/aggressive_dead_code_elim_pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,7 @@ void AggressiveDCEPass::InitExtensions() {
985985
"SPV_NV_shader_image_footprint",
986986
"SPV_NV_shading_rate",
987987
"SPV_NV_mesh_shader",
988+
"SPV_EXT_mesh_shader",
988989
"SPV_NV_ray_tracing",
989990
"SPV_KHR_ray_tracing",
990991
"SPV_KHR_ray_query",

source/opt/local_access_chain_convert_pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,8 @@ void LocalAccessChainConvertPass::InitExtensions() {
420420
"SPV_EXT_demote_to_helper_invocation", "SPV_EXT_descriptor_indexing",
421421
"SPV_NV_fragment_shader_barycentric",
422422
"SPV_NV_compute_shader_derivatives", "SPV_NV_shader_image_footprint",
423-
"SPV_NV_shading_rate", "SPV_NV_mesh_shader", "SPV_NV_ray_tracing",
424-
"SPV_KHR_ray_tracing", "SPV_KHR_ray_query",
423+
"SPV_NV_shading_rate", "SPV_NV_mesh_shader", "SPV_EXT_mesh_shader",
424+
"SPV_NV_ray_tracing", "SPV_KHR_ray_tracing", "SPV_KHR_ray_query",
425425
"SPV_EXT_fragment_invocation_density", "SPV_KHR_terminate_invocation",
426426
"SPV_KHR_subgroup_uniform_control_flow", "SPV_KHR_integer_dot_product",
427427
"SPV_EXT_shader_image_int64", "SPV_KHR_non_semantic_info",

source/opt/local_single_block_elim_pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ void LocalSingleBlockLoadStoreElimPass::InitExtensions() {
273273
"SPV_NV_shader_image_footprint",
274274
"SPV_NV_shading_rate",
275275
"SPV_NV_mesh_shader",
276+
"SPV_EXT_mesh_shader",
276277
"SPV_NV_ray_tracing",
277278
"SPV_KHR_ray_tracing",
278279
"SPV_KHR_ray_query",

source/opt/local_single_store_elim_pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ void LocalSingleStoreElimPass::InitExtensionAllowList() {
124124
"SPV_NV_shader_image_footprint",
125125
"SPV_NV_shading_rate",
126126
"SPV_NV_mesh_shader",
127+
"SPV_EXT_mesh_shader",
127128
"SPV_NV_ray_tracing",
128129
"SPV_KHR_ray_query",
129130
"SPV_EXT_fragment_invocation_density",

0 commit comments

Comments
 (0)