Repository navigation
Conversation
…e64)
Adds ps_vcmpx_int32 for v_cmpx_{eq,ne,lt,le,gt,ge}_{i32,u32}, with the words
derived by hand in the .asm header, plus the matching semantic fixture and test.
AI-assisted.
|
Tested 85abe05 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
AI-assisted run. |
Hardware Validation: NVIDIA Turing (RTX 2070 SUPER)Tested \ps_vcmpx_int32\ on physical hardware:
Results:
|
|
Tested 85abe05 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 4947579, this PR's base; the PR changes no C++ or CMake. llvm-mc 21.1.8 (native), Vulkan SDK 1.4.363.0. No negative control run here. No game files. AI-assisted (Claude Code). |
tests/semantic/regen_fixtures.py AI-assisted.
|
Tested
No game files. AI-assisted (Claude Code). |
tests/semantic/regen_fixtures.py AI-assisted.
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested
AI-assisted (Claude Code). Synthetic shaders only, no game files. |
|
Tested 7b7c1cd 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-VCMPX-INT, #2078 (comment)
What and why
Adds
ps_vcmpx_int32, a GPU test for the 32-bit integerv_cmpxcompares:v_cmpx_{eq,ne,lt,le,gt,ge}_{i32,u32}, in the e32 form and in the e64 form with the operands swapped. On main,v_cmpx_{eq,ne,lt,le,gt,ge}_i32andv_cmpx_{ge,le}_u32ran only on the CPU; the other unsigned ones were reached only by a fuzzer.Five operand pairs per op (a literal
0x80000000vs 1 and an inline-1vs 0, where signed and unsigned disagree; an inline 1 vs0x80000000; a literal0x12345678vs itself; two VGPRs 3 vs 5). Each compare runs alone and EXEC is read back and restored. Bits 30 and 31 of each word check the EXEC and VCC effects: a lane switched off beforehand does not come back, and VCC survives av_cmpx. The four expected words are derived by hand in the.asmheader. The same shader is atests/semanticfixture, asserted intests/semantic/test_vcmpx_int32.pyagainst a plain-Python reference.Not covered:
v_cmpx_f_i32/v_cmpx_t_u32, the f32 and 64-bit forms (ps_vcmpx_forms) and the 16-bit forms.Tested
run_gpu_tests.py --filter ps_vcmpx_int32: PASS, 4096/4096 pixels exact on both.v_cmpx_ge_u32/v_cmp_ge_u32compare signed intools/rdna2spirv.py(one line) fails on both GPUs: got0x984dcee8, 0x983e52e8, 0xb73612e8, 0xb7458ee8, want0x984dcee8, 0x963e52e8, 0xb73612e8, 0xb9458ee8(4096/4096 mismatches). Reverted.python -m unittest discover -s tests/semantic(2569 tests, OK, 3 skipped),python tests/semantic/regen_fixtures.py --checkclean,python -I tests/test_shader_checks.py(60 tests OK).Checklist
AI-assisted.