Skip to content

Commit f026033

Browse files
authored
opt: add SPV_NV_shader_invocation_reorder to allowlist (KhronosGroup#6122)
1 parent 6db659d commit f026033

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

source/opt/aggressive_dead_code_elim_pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,7 @@ void AggressiveDCEPass::InitExtensions() {
10391039
"SPV_KHR_ray_tracing_position_fetch",
10401040
"SPV_KHR_fragment_shading_rate",
10411041
"SPV_KHR_quad_control",
1042+
"SPV_NV_shader_invocation_reorder"
10421043
});
10431044
// clang-format on
10441045
}

source/opt/local_access_chain_convert_pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ void LocalAccessChainConvertPass::InitExtensions() {
434434
"SPV_KHR_compute_shader_derivatives", "SPV_NV_cooperative_matrix",
435435
"SPV_KHR_cooperative_matrix", "SPV_KHR_ray_tracing_position_fetch",
436436
"SPV_AMDX_shader_enqueue", "SPV_KHR_fragment_shading_rate",
437-
"SPV_KHR_quad_control"});
437+
"SPV_KHR_quad_control", "SPV_NV_shader_invocation_reorder"});
438438
}
439439

440440
bool LocalAccessChainConvertPass::AnyIndexIsOutOfBounds(

source/opt/local_single_block_elim_pass.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ void LocalSingleBlockLoadStoreElimPass::InitExtensions() {
299299
"SPV_KHR_cooperative_matrix",
300300
"SPV_KHR_ray_tracing_position_fetch",
301301
"SPV_KHR_fragment_shading_rate",
302-
"SPV_KHR_quad_control"});
302+
"SPV_KHR_quad_control",
303+
"SPV_NV_shader_invocation_reorder"});
303304
}
304305

305306
} // namespace opt

source/opt/local_single_store_elim_pass.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ void LocalSingleStoreElimPass::InitExtensionAllowList() {
151151
"SPV_KHR_fragment_shading_rate",
152152
"SPV_KHR_ray_tracing",
153153
"SPV_KHR_quad_control",
154-
"SPV_GOOGLE_user_type"});
154+
"SPV_GOOGLE_user_type",
155+
"SPV_NV_shader_invocation_reorder"});
155156
}
156157
bool LocalSingleStoreElimPass::ProcessVariable(Instruction* var_inst) {
157158
std::vector<Instruction*> users;

0 commit comments

Comments
 (0)