Repository navigation
Conversation
cs_w32_lds_st64_b64 and cs_w32_lds_st64_b32 check each dword of the strided LDS two-address forms with distinct offsets (also offset0 > offset1) and count the non-fill words of the whole LDS so no neighbouring word is written. AI-assisted.
|
Tested b417c5a 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.
Test programs: an MSVC 14.44 build of 4947579, this PR's base. The PR changes no C++ or CMake, so they are what its head builds; the translator, runner and This adds an RDNA4 card to the RDNA2 iGPU and NVIDIA runs in the description. No negative control run here. No game files. AI-assisted (Claude Code). |
|
Tested Independent Vulkan check of Rebuilt the harnesses at this head and ran
The expected readbacks include the checks for stray LDS writes. All three targeted CPU tests and fixture regeneration passed. AI-assisted verification. |
|
Tested b417c5a on NVIDIA GeForce RTX 3090 (Ampere, subgroup 32..32), driver 610.88 (Vulkan 1.4.341), Windows 11 Pro 26300: pass. The PR's diff applied cleanly to
|
|
Tested b417c5a on NVIDIA GeForce RTX 4070 (subgroup 32..32), driver 617.42, Windows 11 (26300): pass. |
|
Tested b417c5a on an RX 9070 (RDNA4), AMD 26.11.1 (LLPC), Vulkan 1.4.359, Windows 11: pass Full AI-assisted |
|
Tested b417c5a on Windows 11 Home 26300: pass. AI-assisted (Claude Code). Hardware: AMD Ryzen 5 7600X; iGPU AMD Radeon(TM) Graphics (RDNA2, subgroup 32..64), AMD driver 24.10.24 (Vulkan driver 2.0.302); NVIDIA GeForce RTX 5060 Ti, driver 610.88 (subgroup 32..32). MSVC 14.44, Vulkan SDK 1.4.363.0, llvm-mc 21.1.8, Python 3.12.10. Test programs built at b417c5a. Implicit layers off. No game files. Both new tests pass, with the same words in all four runs (Radeon native and with
Whole suite (
Most of the Radeon skips are its 128-byte push-constant limit.
|
runtime/test/shaders/check.py scripts/run_gpu_tests.py AI-assisted.
|
Tested 9aaaeba on NVIDIA GeForce RTX 4060 Ti, driver 621.01, Windows 11 Home (build 26300): pass Ran: python -I scripts/run_gpu_tests.py --llvm-mc "wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc" --build --filter cs_w32_lds_st64_b32, then the same with --filter cs_w32_lds_st64_b64 Results:
CPU checks on this branch: tests/test_shader_checks.py 69 tests OK; python -m unittest discover -s tests/semantic: 4145 tests OK. Notes:
|
|
Tested
No game files. AI-assisted (Claude Code). |
runtime/test/shaders/check.py scripts/run_gpu_tests.py tests/semantic/regen_fixtures.py AI-assisted.
|
Tested Tested AI-assisted (Codex). AI-assisted verification. |
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested
AI-assisted (Claude Code). Synthetic shaders only, no game files. |
|
Tested 0e7148d on NVIDIA RTX 4080, driver 610.88, Windows 11: pass This is the head rebased on
AI-assisted. |
|
Tested
Not run: AI-assisted (Claude Code). |
Requested by Lucas · project thread
Claimed in the coordination issue as: EGEN-GPU-DS-ST64-B64, #2078 (comment)
What and why
GPU tests for the strided LDS two-address forms.
cs_lds_b64_cmpstalready runsds_read2st64_b64/ds_write2st64_b64once on the GPU, but only as an XOR of their dwords, with offsets 0 and 1.ds_read2st64_b32/ds_write2st64_b32have no GPU shader on main.cs_w32_lds_st64_b64.asm:ds_write2st64_b64(offset0:1 offset1:3, 512-byte stride) andds_read2st64_b64(offset0:5 offset1:2, so offset0 is the larger one). Every dword of both elements is checked on its own.cs_w32_lds_st64_b32.asm:ds_write2st64_b32(offset0:3 offset1:7, 256-byte stride),ds_read2st64_b32in both offset orders, and a write with offset0 > offset1.out[7]holds the count when it is wrong..asmheader. Registered incheck.pyandrun_gpu_tests.py(wave32 compute dumps), added toregen_fixtures.py, andtests/semantic/test_lds_st64_fixtures.pychecks the words against a plain-Python model of the ISA, the runner constants, and the translated shader run on one lane inspirv_mini_interp.docs/design.md: the LDS 2-address b64 row now names the new GPU checks (they cover the b32 st64 forms as well).The CPU test is a separate file, not a class in
test_value_semantics.py, because #2125 appends there.check.py/run_gpu_tests.py/regen_fixtures.pylist entries sit next to #2125's and may need a trivial merge.Overlap checked: #2003 covers
ds_wrxchg*st64only, #1951 is a CPU-onlyds_read2test, #2125 covers and/or/xor/sub.Tested
Windows 11,
vk_compute_test, wave32 (VKC_SUBGROUP_SIZE=32), one device at a time,-j 4build.run_gpu_tests.py --filter cs_w32_lds_st64_b2/2 pass (both shaders spirv-val clean).unit = 4 * words * (64 ...)changed to32for st64 intools/rdna2spirv.py. Both shaders fail on both GPUs (every output word is the 0xEEEEEEEE fill, since the writes land on the x32 addresses and the reads look at the x64 ones). Reverted.python -m unittest discover -s tests/semanticOK,python tests/semantic/regen_fixtures.py --checkclean,python -I tests/test_shader_checks.pyOK.AI-assisted.
Checklist
docs/design.mdis extended with the GPU check.