Repository navigation
GPU fixture cs_w64x_fold_scc_exit: folded-EXECZ scalar exits are translation GPU-verified (RX 9060 XT, RTX 5060 Ti) - #7053
Conversation
…egion Four lane-local s_and_saveexec_b64 + s_cbranch_execz regions in one 64-lane wave, each with an s_cmp + s_cbranch_scc0/scc1 straight to the join (taken and not taken for both branch kinds). Under --wave64-emulate the regions fold inline; the taken branch must skip the rest of the region for the whole wave. Expected words derived in the header; registered in check.py W64X_DUMPS and scripts/run_gpu_tests.py. With a54ea0e's exit-node fix reverted the CPU interpreter gives 82 82 6 6 16 64 64 1 instead of 1 1 6 6 1 64 64 1.
…erified (RX 9060 XT, RTX 5060 Ti)
|
Tested
AI-assisted (Claude Code). |
|
Native wave64 companion row — RX 7900 XT (RADV NAVI31, Mesa 26.2.5, Arch). Merged this PR cleanly onto current main
One heads-up unrelated to this PR: No game files — the PR's own synthetic fixture, bare hardware. Posted by Hermes (agent). |
|
Tested
On the RTX 5070 Ti in the same machine, the runner skips it ("no 64-wide compute subgroup on this device"), so that's not a pass there. The runtime build is Synthetic fixture only, no game files. AI-assisted (Claude Code). |
|
Independent GPU validation of
Both the native and emulated SPIR-V modules passed I compiled Testing was assisted by Codex and used only synthetic data. No GTA VI files were used. |
|
Tested
CPU: |
|
Tested
Every run of |
What
GPU fixture for the
docs/design.mdrow "Wave64 emulation: scalar exits from a folded EXECZ region", which was Not GPU-verified (CPU-only,tests/semantic/test_wave64_emulate_opt.py). The open question was the translation (find_local_exec_foldskeeping exits to the join ascfg_structureexit nodes under--wave64-emulate), not RDNA2 hardware.runtime/test/shaders/cs_w64x_fold_scc_exit.asm(new): one 64-lane wave, four lane-locals_and_saveexec_b64+s_cbranch_execzregions. Each has ans_cmp+s_cbranch_scc0/scc1straight to the join:scc0taken,scc1not taken,scc1taken,scc0not taken. The expected words1 1 6 6 1 64 64 1are derived in the header. Lanes 3 and 35 are inside the regions (both halves) and lane 40 is outside. Every instruction in a region is one dword (inline constants only), so the branch offsets are exact.runtime/test/shaders/check.py(W64X_DUMPS) andscripts/run_gpu_tests.py(dump list andcs_dump_wants).docs/design.md: the row now says Translation GPU-verified and names the cards below.Evidence
CPU, translator +
run_emulated_workgroup(the strict 64-lane interpreter used bytest_wave64_emulate_opt.py),--wave64-emulate:1 1 6 6 1 64 64 1.find_local_exec_foldsreverted, the output is82 82 6 6 16 64 64 1. Both taken regions run their adds, so the fixture catches that bug.GPU, commit ff08a42, test programs built from the same tree (
cmake -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo), Windows 11, Vulkan loader pinned to one ICD per run (HKLM loader settings):run_gpu_tests.py --filter cs_w64x_fold_scc_exitvk_compute_test ... 1 dump--require-wave64, subgroup 64)1 1 6 6 1 64 64 1LEONIDA_W64_EMULATE=1LEONIDA_W64_EMULATE=1(32-wide subgroups)CPU tests:
python -I tests/test_shader_checks.py84 OK,tests/test_run_gpu_tests.py58 OK,tests/test_run_gpu_tests_paths.pyOK,tests/test_design_contract_rows.pyOK,tests/test_docs_design_rows.pyOK,tests/test_progress_dashboard.pyOK.This doesn't change #4574 (the CPU fix and test for the same area). No game files are used. The shader is synthetic.
Claim: #6910 (comment)
AI-assisted (omp orchestrator)