Repository navigation
Conversation
…(cs_w32_dot4_carry) Per-lane wave32 dump of signed dot products and v_add/sub/subrev_co(_ci)_u32 with SGPR carry-in, a carry ripple and clamp; same shader as a semantic fixture. AI-assisted.
AI-assisted.
|
Tested Independent Vulkan check of Rebuilt the harnesses from this head and ran Both targeted CPU semantic tests, all 60 shader-check tests, and fixture regeneration passed. AI-assisted verification. |
|
Tested 55071e6 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 The check above is NVIDIA (32-wide); this one is an AMD card with native 64-wide subgroups, RDNA4. No negative control run here. No game files. AI-assisted (Claude Code). |
Conflicts: runtime/test/shaders/check.py scripts/run_gpu_tests.py tests/test_shader_checks.py AI-assisted.
docs/design.md AI-assisted.
scripts/run_gpu_tests.py tests/semantic/regen_fixtures.py tests/test_shader_checks.py AI-assisted.
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested
AI-assisted (Claude Code). Synthetic shaders only, no game files. |
|
Tested 960a6be on NVIDIA RTX 4080, driver 610.88, Windows 11: pass This is the head rebased on
AI-assisted. |
docs/design.md AI-assisted.
|
Tested
Not run: AI-assisted (Claude Code). |
|
Apple M2 / MoltenVK validation of head
No code changes, no game data; synthetic fixture and counts only. AI-assisted. |
|
Tested 89c15aa (merge base 7b7d73f) on NVIDIA GeForce RTX 5080, Linux 580.65.06: fail Tested the PR head merged with current main
Line-by-line against my main run (results that differ from main):
Why fail: a bug in the PR's Not run: the full AI-assisted (Claude Code). |
|
Replying to @tedin7. I verified the failure-reporting consequence on the unmerged PR head
For regression coverage, asserting that each selected fixture appears exactly once would catch the missing and duplicated rows even when the total looks right. AI-assisted verification. AI-assisted. |
Requested by Lucas · project thread
Claimed in the coordination issue as: EGEN-GPU-DOT4-CARRY, #2078 (comment)
What and why
v_dot4_i32_i8,v_dot4c_i32_i8,v_add_co_u32,v_add_co_ci_u32,v_sub_co_u32,v_sub_co_ci_u32andv_subrev_co_u32(also with VOP3clamp) were only CPU-tested. This adds one wave32 GPU test,cs_w32_dot4_carry, that dumps 456 words:v_dot4caccumulating twice, andv_dot4cper lane;vcc_lo, and the four clamp forms;v_cndmask_b32_e64, so the check does not depend on how a mask SGPR reads as data).The
.asmheader derives every word from the ISA pseudocode. gfx10 has no VOP2v_*_co_u32, so the plain forms are VOP3 withvcc_loas carry-out. The same shader is a semantic fixture (test_dot4_carry_fixture.py: hand constants plus a plain-Python model). I did not use VCC holding data as a carry-in mask (that is #2206's area). Dot4clamp/op_selare refused by the translator, so they are not tested. No translator change;docs/design.mdgets a sentence on the dot4 row.Tested
run_gpu_tests.py --filter cs_w32_dot4_carry456/456 words exact on both.OpBitFieldSExtract->UExtracton the first dot4 operand (RTX 5080: word 0 expected 0x00010000, got 0xffff0000; the CPU fixture fails too); carry-in ignored in the*_co_ciops (Radeon: word 73);clampignored on the carry ops (Radeon: word 312).python -m unittest discover -s tests/semanticOK (1673 tests);regen_fixtures.py --checkclean;python -I tests/test_shader_checks.pyOK.Checklist
AI-assisted.