Repository navigation
GPU fixture for v_mqsad_u32_u8 through the translated path (TEST-644) - #4669
rafaelpssz wants to merge 2 commits into
Conversation
Kam471
left a comment
There was a problem hiding this comment.
Built and ran at 698ece2a9 on Windows 11, RTX 5070 Ti.
code_hooks_test-> 14 checks, 0 failures.- GPU:
run_gpu_tests.py --filter mqsad-> 1/1 passed,cs_w32_mqsad_u32->34 51 52 63 306 562 818 1084, translator 1/1 +spirv-val. git diff --checkclean.
The fixture exercises v_mqsad_u32_u8 through the translated path with the expected words, and the new archetype hook has its own unit test. Stacking note: the branch carries db51b7d3f (Mods manifests) and 9e6444fad (the archetype hook / --archetype-lookup), both owner-authored, under the fixture change; merging this PR lands both features. Six open PRs share the Mods base, and #4672 shares the archetype base — they merge cleanly with each other but the base is unreviewed by this PR.
|
Tested at Summary
AI-assisted (Gemini, Antigravity). |
|
Apple M2 / MoltenVK validation of head
No code changes, no game data; synthetic shader and counts only. AI-assisted. |
|
Thanks @justr4mzi and @bobcatchris. The RDNA2 run makes this hardware-exact and not only translator-exact, and the M2 run comes with a negative control. The row now lists both ( |
|
Tested
So the translated |
|
Thanks @rgvxsthi, RDNA4 makes three AMD generations with the same eight words. You're in Thanks. |
|
Verified on Linux: the single design.md row passes both docs-compliance tests at the head (paths and the --wave64-emulate flag all tracked/real). Note it belongs with the TEST-644 stack: the cited fixture cs_w32_mqsad_u32.asm exists only there — on plain main the row still reads "Not GPU-verified" and a standalone cherry-pick conflicts and would break test_docs_repo_paths. The added hardware results (RX 6700 XT, RTX 5070 Ti, MoltenVK on M2) cannot be reproduced from this CPU-only host and rest on the reporters' runs. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). Correction (2026-11-23): stale-ref error: the cs_w32_mqsad_u32.asm fixture is not on main but arrives via this PR's lineage when merged (the merge-tree is clean) — so no ordering blocker, but merging lands the lineage with it. The hardware-claims note stands. |
|
Tested 6db3a22 merged onto main de67135 on an RTX 5090 (driver 616.92), Windows 11, Vulkan SDK 1.4.363. The GPU test programs were built from the same tree:
AI-assisted (Claude Code). |
|
Tested 6db3a22 on Intel UHD 630 (CFL GT2, subgroup 8..32), Mesa 25.2.8 ANV, Ubuntu 24.04: pass.
AI-assisted. |
|
Tested
AI-assisted (Claude Code). |
6db3a22 to
c7e977f
Compare
|
Rebased onto |
|
Tested c7e977f merged with main d327ddf on Windows 11 (Python 3.13.1, llvm-mc 23.1.6, spirv-val) + NVIDIA GeForce RTX 4080 SUPER: concern (merge conflict only) |
cs_w32_mqsad_u32 runs v_mqsad_u32_u8 twice on S0 = 0x88776655_44332211 and S1 = 0x40005000 (two zero bytes the masked SAD skips): in place with D = S2 (one accumulator wraps at 32 bits), and with D over S0, which only gives the expected words if every source is read before the first write. Expected words derived from the ISA pseudocode in the .asm. Exact on an RTX 3060 (616.64), native and with LEONIDA_W64_EMULATE=1; the design.md row is now GPU-checked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ltenVK too @justr4mzi (RX 6700 XT, gfx1031), @Kam471 (RTX 5070 Ti) and @bobcatchris (Apple M2 / MoltenVK) ran cs_w32_mqsad_u32 with the same eight words. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
c7e977f to
2590c16
Compare
|
Tested
Xbox 1.0.2.1 coverage: 0 of 26,503 local |
TEST-644, the
v_mqsad_u32_u8part (claim). Theds_wrxchg2part is already run bycs_w32_new_ops.asmonmain, and the open #3208 and #2003 add fixtures for it, so it is left to them.What
The
v_mqsad_u32_u8row ofdocs/design.mdwas hardware-verified on RDNA2 (native, throughhw_oracle), but the translated path had never run on a GPU (Not GPU-verified). This adds the fixture:runtime/test/shaders/cs_w32_mqsad_u32.asmrunsv_mqsad_u32_u8twice. S0 =0x88776655_44332211. S1 =0x40005000, whose bytes 0 and 2 are zero, so the masked SAD has to skip them.v[2:5]overv[2:3]): this only gives the expected words if every source is read before the first write, as the row says..asmheader from the ISA pseudocode, and checked by the same formula in Python:0x22 0x33 0x34 0x3F 0x132 0x232 0x332 0x43C.runtime/test/shaders/check.pyandscripts/run_gpu_tests.pynext tocs_w32_new_ops, as a wave32 fixture.docs/design.mdis now GPU-checked.Tested (RTX 3060, Ampere, driver 616.64, Windows 11)
run_gpu_tests.py --filter cs_w32_mqsad_u32: translated, passesspirv-val, PASS (34 51 52 63 306 562 818 1084). It also passes withLEONIDA_W64_EMULATE=1.tests/test_run_gpu_tests.py,test_run_gpu_tests_paths.py(20),test_shader_checks.py(83),test_ctest_registration.py,test_docs_design_rows.pyandtest_docs_links.pypass, andgit diff --checkis clean.Since then it has also passed on an AMD RX 6700 XT (RDNA2), an RTX 5070 Ti and an Apple M2 (MoltenVK); the row says so (
6db3a228).Thanks
By @rafaelpssz, with Claude Code (AI-assisted).