Repository navigation
Conversation
|
Tested
Worth knowing for other reviewers with a 32-wide GPU: without Not tested: a native 64-wide device (AMD), Linux/Mesa, and the sentence the PR changes in AI-assisted. Synthetic shader only; no game data. |
|
Tested cd1c3c9 on Steam Deck LCD (Jupiter), AMD Custom GPU 0405 "Van Gogh", RADV Mesa 26.2.0-devel (git-5c65d4fc31), Vulkan 1.4.350, SteamOS 3.9.5 (holo), kernel 7.2.7-valve2-2-neptune-72-g31504582a073.
No runtime C++ changes in this PR; validated shader test/scripts/docs changes on-device. AI-assisted (OpenCode). |
|
Tested cd1c3c9 on AMD RADV RAPHAEL_MENDOCINO (Ryzen 9 9950X3D iGPU), native wave64 (subgroup 32..64, "native64_compute": true, LEONIDA_W64_EMULATE unset): run_gpu_tests.py --filter cs_w64x_null_mask prints "PASS cs_w64x_null_mask 1 64 4294967295 7 9 0 32 4294967295" and "1/1 passed". With LEONIDA_VK_DEVICE=NoSuchDevice it fails with "no Vulkan physical device matches". tests/test_shader_checks.py runs 86 tests OK and tests/test_run_gpu_tests.py runs 47 tests OK. AI-assisted. |
Kam471
left a comment
There was a problem hiding this comment.
Reviewed head cd1c3c9a (4 files, +64/-3). Adds cs_w64x_null_mask.asm, expected words in both runners, and the design.md row.
Commands (RTX 5070 Ti):
- no emulation:
... --filter cs_w64x_null_mask-> SKIP (no 64-wide compute subgroup), 0/1 passed LEONIDA_W64_EMULATE=1 ... --filter cs_w64x_null_mask --require-pass->PASS cs_w64x_null_mask 1 64 4294967295 7 9 0 32 4294967295, 1/1- negative control (
mask_srcnull ->0xFFFFFFFF) ->FAIL cs_w64x_null_mask 1 32 0 9 9 32 32 4294967295, matching the body; reverted python -I -m pytest tests/test_shader_checks.py tests/test_run_gpu_tests.py tests/test_docs_links.py tests/test_docs_design_rows.py -q-> 143 passed, 374 subtestsgit diff --check-> clean
The Intel UHD 630 / Mesa 25.2.8 ANV measurement in the design row is unverified here: no Intel GPU. This run corroborates the expected words through wave64 emulation on NVIDIA, not the Intel hardware result the row now cites.
Verdict: pass, with the Intel claim explicitly unverified.
|
Tested
AI-assisted (Claude Code). |
|
Tested cd1c3c9 (CPU part only), Windows 11:
Setup: Windows 11. GPUs are an AMD Ryzen 7 9800X3D iGPU (RDNA2 gfx1036, driver 26.11.2, subgroup 32..64) and an RTX 4070 Ti SUPER (NVIDIA 621.14, subgroup 32). Each PR was tested in its own worktree with:
Baseline is main
The NVIDIA failure is |
The
Null mask sourcerow of the translator contract table was confirmed on the CPU interpreter only (tests/semantic/fixtures/null_mask_source.asm); this adds the GPU fixture that closes it and records the measurement in the row.runtime/test/shaders/cs_w64x_null_mask.asmis a wave64 compute fixture in the shape of the othercs_w64x_*fixtures. It readsnullas a lane mask four ways:s_bitcmp0_b64 null, 42(bit 42 of the 64-bit zero),s_bcnt0_i32_b64 null(64 zero bits),s_ff1_i32_b64 null(no set bit,0xffffffff), and av_mov_b32_e32under the EXEC thats_and_saveexec_b64 s[4:5], nullleaves, soEXEC = EXEC & 0and the write lands in no lane. The 32-bit forms (s_bcnt0_i32_b32,s_ff1_i32_b32), the complements (s_bitcmp1_b64,s_bcnt1_i32_b64) and one more vector write afters_mov_b64 exec, -1fill the eight words; the last one shows the restore works, so out[3] is the null mask and not a dead write. The four words the CPU fixture asserts are the first four of these.Measured with
LEONIDA_W64_EMULATE=1on Intel UHD Graphics 630 (Mesa 25.2.8 ANV, subgroups 8..32):scripts/run_gpu_tests.py --filter cs_w64x_null_maskgivesPASS cs_w64x_null_mask 1 64 4294967295 7 9 0 32 4294967295, 1/1 passed, andvk_compute_test cs_w64x_null_mask.spv 1 dumpprints the sameout[0..7]. The device reports subgroups 8..32, so the wave64 program runs through--wave64-emulate; the row now names the measurement where it said the fixture was not GPU-verified. The expected words are registered inruntime/test/shaders/check.pyandscripts/run_gpu_tests.py.The negative control makes
mask_srcreadnullas-1instead of0. The same run then fails withFAIL cs_w64x_null_mask 1 32 0 9 9 32 32 4294967295(0/1 passed), andtests/test_shader_checks.py(83 tests),tests/test_run_gpu_tests.py(41 tests) and thetest_docs_*.pyset (30 tests) pass.AI-assisted.