upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/test_run_gpu_tests_python_assembler.py
diff options
context:
space:
mode:
authorwhoalin1 <207920491+whoalin1@users.noreply.github.com>2026-11-24 16:03:32 +0200
committerwhoalin1 <207920491+whoalin1@users.noreply.github.com>2026-11-25 03:40:21 +0200
commit0681b9d280ee1adac2d123fb47265da4d9e35444 (patch)
treef244570206ab1965d8d79264bc5022f2cd7113d9 /tests/test_run_gpu_tests_python_assembler.py
parent18a22c1aefa227fd2eda047bab3385147d569f9d (diff)
cfg_structure / rdna2spirv: unwrap tautological %pc guards in structured CFGs (ms_wave_info_s3 AMD LLPC crash)
cfg_structure.structure() wraps post-dominating join blocks after a diamond or loop in a ('guard', g, ...) node even when %pc == g is tautologically true on every incoming path. wave64_emulate_opt._unwrap_known_pc_guards already unwraps these guards for --wave64-emulate, which is why ms_wave_info_s3 passed on 32-wide NVIDIA GPUs while crashing with 0xC0000005 on native wave64 AMD RDNA2 Windows (driver 24.10.24, LLPC) where blk2's OpControlBarrier stayed trapped inside a conditional OpBranchConditional. Move unwrap_known_pc_guards into tools/cfg_structure.py (reused by wave64_emulate_opt with zero duplication) and apply it in rdna2spirv.capped_tree() so both assemble() and needs_barrier_rounds() see post-dominating join blocks at top level. SHADER-STRUCTURED-PC-UNWRAP Co-Authored-By: Gemini 4 Neon <noreply@google.com>
Diffstat (limited to 'tests/test_run_gpu_tests_python_assembler.py')
0 files changed, 0 insertions, 0 deletions