Repository navigation
test(gpu): exercise s_absdiff_i32, s_mul_hi_i32 and s_lshl1..4_add_u32 - #3275
YaBulochka wants to merge 1 commit into
Conversation
|
Apple M2 check of head 4093161 (macOS 26.4, MoltenVK 1.4.2 direct, subgroup 4..32, llvm-mc 23.1.6, Python 3.13.18): the new fixture translates but cannot be judged here.
Full build fails on AppleClang 17 at vk_pipeline_check.cpp:567 (BUILD-822, fixed by open PR #2927); GPU binaries built, so the translation/skip result is valid. Head fetched read-only; no rebase/edit/push. Synthetic shader only, no game files. AI-assisted. |
|
Tested 4093161 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 checks above have no AMD run from outside the author; this adds an AMD card with native 64-wide subgroups.
Test programs: an MSVC 14.44 build of main ec8ec4c; this PR's runtime C++ and CMake are identical to that commit, and the translator, runner and |
4093161 to
f125331
Compare
|
Tested Machine: Linux Mint 22 (Ubuntu 24.04 base), NVIDIA driver 615.71.09, Vulkan loader 1.3.275 with the pinned RTX 3080 (the card RTX 5080 (
One thing to confirm: without
|
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested f125331 on NVIDIA GeForce GTX 1660 (Turing, TU116, subgroup 32..32), driver 620.73.04 (proprietary, Vulkan 1.4.357), Arch Linux (kernel 6.18): pass, no regression. Native build of runtime/ from this head (Ninja, RelWithDebInfo, clang 23.1.5), llvm-mc 23.1.5, SPIRV-Tools v2026.4.
AI-assisted run (Claude). Synthetic programs only, no game files involved. |
f125331 to
2c84542
Compare
|
Code read of |
|
Tested Checked the shift-add SCC coverage gap on Linux RTX 5090. The submitted runner skipped this wave32 fixture for lack of a 64-wide subgroup. With the fixture marked wave32 locally, the original shader passed all eight expected result words. I then captured SCC with AI-assisted (Codex). AI-assisted verification. |
|
Ran |
|
Replying to @kapitche. Your skip is reproducible at AI-assisted (Codex). AI-assisted. |
|
Tested
No game files. AI-assisted (Claude Code). |
2c84542 to
9b0e4cc
Compare
|
Tested At Changing only the local runner's subgroup selection to wave32 let the unchanged shader run. All eight expected words matched: Adding the fixture to the runner's wave32 list would let 32-wide devices exercise the checked-in arithmetic expectations. AI-assisted verification. |
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested 9b0e4cc on AMD Radeon 610M (RADV, gfx1036, Mesa 26.2.6), CachyOS Linux, LEONIDA_VK_DEVICE=RADV: pass. scripts/run_gpu_tests.py --filter cs_w32_salu_abs_lshl --require-pass: 1 shaders: 1 translated, 1 pass spirv-val; PASS cs_w32_salu_abs_lshl 1 1 0 268435456 2147487744 0 1 4294967280; 1/1 passed. The same filter with LEONIDA_VK_DEVICE=NoSuchDevice fails with "no Vulkan physical device matches", so the RADV device ran it. AI-assisted. |
|
Re-tested the current head Your new program runs here and its words are exact under the wave64 emulator: With which is the expected behaviour on an RTX 3080 (32-wide subgroups natively) — so on NVIDIA hardware this fixture is Current RTX 5080 not used in this pass (186 MiB free, another job holds the card). AI-assisted testing, counts read through by |
9b0e4cc to
097117a
Compare
|
Tested
Xbox 1.0.2.1 coverage: 0 of 26,503 local |
Claimed in the coordination issue as: #1745 (comment)
What and why
s_absdiff_i32,s_mul_hi_i32ands_lshl1..4_add_u32are covered by semantic tests and by one-off hardware probes recorded indocs/design.md, but nothing inruntime/test/shadersruns them, so a regression in the emitted SPIR-V would not show up in the GPU suite. This adds one wave32 fixture with the expected words derived from the ISA first:s_absdiff_i32(0x7fffffff, 0x80000000): the difference wraps to0xffffffff,|.|gives1, SCC 1;s_absdiff_i32(0x80000000, 0x80000000)gives0;s_mul_hi_i32(0x40000000, 0x40000000)=0x10000000(high word of 2^60);s_lshl1_add_u32(0x40000000, 0x1000)=0x80001000, nothing leaves the 64-bit sum, SCC 0;s_lshl2_add_u32(0x80000000, 0)=0ands_lshl3_add_u32(0x20000000, 1)=1, both with bits shifted out, SCC 1;s_lshl4_add_u32(0x0fffffff, 0)=0xfffffff0, SCC 0.Registered in
runtime/test/shaders/check.py(wave32 lists, lane-mask skip list, expected words) andscripts/run_gpu_tests.py(runner tuple andcs_dump_wants).This overlaps #3208 in the same two registration lists; whichever lands second needs a one-line rebase.
Tested
AMD Radeon RX 7600 (gfx1102), RADV Mesa 27.0.0-devel, Linux 7.3.3, llvm-mc 23.1.5.
run_gpu_tests.py --filter cs_w32_salu_abs_lshl-> 1/1 passed:spirv-val; 176/190 passed, 14 skipped, 0 failed.ctest: 34/36; the two failures (vk_pipeline_check_cli,xdxr_build_check) are present on clean16282101with these changes stashed, so they are not from this PR.Checklist