shader: translate zero-kind branches as the negated nonzero vote

This commit is contained in:
nmzik
2026-10-21 23:33:30 +02:00
parent 0f7d112545
commit da19501889
2 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -31177,7 +31177,7 @@ TestCase ScalarBranchRestoresInactiveLanes(u32 wave_size, u32 threads, bool uppe
upper_nonzero ? O::S_CBRANCH_EXECNZ : O::S_CBRANCH_EXECZ,
O::V_READLANE_B32, O::V_LSHLREV_B32,
O::BUFFER_STORE_DWORD, O::S_ENDPGM};
test.required_spirv = {upper_nonzero ? "OpGroupNonUniformAny" : "OpGroupNonUniformAll"};
test.required_spirv = {"OpGroupNonUniformAny"};
test.compute_info.wave_size = wave_size;
test.compute_info.threads_num[0] = threads;
test.compute_info.thread_ids_num = 1;