Repository navigation
Conversation
cs_w32_movrel runs each op with M0 = 0 to 100 and stores eight words from lane 0 (derivations in the shader header). Added as a tests/semantic fixture with a plain-Python reference, and the v_movrel* row in docs/design.md names the GPU test. AI-assisted.
Conflicts: docs/design.md AI-assisted.
|
Merged main (17a196c) again; CPU checks and the PR's GPU tests pass on Radeon RDNA2 iGPU. AI-assisted. |
|
Tested Independent synthetic Vulkan check of
AI-assisted verification. |
|
Tested 17a196c on AMD Radeon RX 9060 XT (RDNA4), AMD driver 26.10.44 (LLPC, Vulkan driver 2.0.395), Windows 11 Pro 10.0.26300, subgroup 32..64: pass. The check above is NVIDIA on Linux; this one is AMD on Windows, with native 64-wide subgroups.
Test programs: an MSVC 14.44 build of 4947579, this PR's base; the PR changes no C++ or CMake. llvm-mc 21.1.8 (native), Vulkan SDK 1.4.363.0. No negative control run here. No game files. AI-assisted (Claude Code). |
docs/design.md runtime/test/shaders/check.py scripts/run_gpu_tests.py tests/semantic/regen_fixtures.py AI-assisted.
docs/design.md AI-assisted.
docs/design.md runtime/test/shaders/check.py scripts/run_gpu_tests.py tests/semantic/regen_fixtures.py AI-assisted.
|
Tested
No game files. AI-assisted (Claude Code). |
docs/design.md AI-assisted.
|
Apple M2 / MoltenVK validation of head
No code changes, no game data; synthetic fixture and counts only. AI-assisted. |
|
Tested a076a05 (merge base 7b7d73f) on NVIDIA GeForce RTX 5080, Linux 580.65.06: pass Tested the PR head merged with current main
Line-by-line against my main run (results that differ from main):
Not run: the full AI-assisted (Claude Code). |
Requested by Lucas · project thread
Claimed in the coordination issue as: EGEN-GPU-LANE-MOVREL, #2078 (comment)
What and why
v_movrels_b32,v_movreld_b32andv_movrelsd_b32(VGPR indexing by the whole of M0) were checked on the CPU only. This addsruntime/test/shaders/cs_w32_movrel.asm, a wave32 dump that runs each op with several M0 values and has lane 0 store eight words:v_movrels_b32with M0 = 0, 3 and 82v_movreld_b32with M0 = 2 and 100, and the unindexed destination register keeps its valuev_movrelsd_b32with M0 = 1 and 48The expected words and their derivation from the ISA definitions are in the shader header, written by hand. The same shader is a
tests/semanticfixture (cs_w32_movrel, inregen_fixtures.py) withtests/semantic/test_movrel_fixture.py, which checks the words against a plain-Python model and checks thatcheck.pyandrun_gpu_tests.pyexpect the same words. Thedocs/design.mdrow forv_movrel*now names the GPU test.No translator change. Out-of-range indices are not tested: design.md lists the hardware range check as not modelled.
v_movrelsd_2_b32already hascs_movrelsd_2, andv_swaprel_b32/s_movrelsare in #1850, so they are left out. #2181 adds CPU interpreter tests for the same ops and does not overlap with this GPU test.Tested
cs_w32_movrelPASS, 160 163 146 164 48 165 161 88.tools/rdna2spirv.py, reverted): ignoring M0 inv_movreld_b32gives 160 163 146 50 164 305 161 88 (FAIL on both GPUs); inv_movrels_b32160 160 160 164 48 165 161 88 (FAIL, 5080); inv_movrelsd_b32160 163 146 164 48 165 65 152 (FAIL, 5080). Restored, both GPUs pass again.python -m unittest discover -s tests/semantic,python tests/semantic/regen_fixtures.py --check,python -I tests/test_shader_checks.py: all OK (1674 tests, 2 skipped; fixtures clean; shader checks OK).tests/test_docs_design_rows.pyreports duplicate topic rows indocs/design.mdthat are already on main; this PR adds no row and only extends one row's text.AI-assisted.
Checklist
docs/design.md, with how it was confirmed. (No new rule; the existingv_movrel*row now cites the GPU test.)