Repository navigation
Conversation
Two pixel tests for ops that had CPU checks only. ps_mad_legacy: the legacy zero rule (0 * inf, NaN * -0 give +0) and the denormal flush of a product and of a v_mac_legacy_f32 operand. ps_mad_flush: the SHADER-118 flush of a v_mad_f32 operand, a v_mac_f32 product, a denormal sum, and FLT_MIN div:2 (flush after omod). Expected words derived by hand in the .asm headers; registered in check.py and run_gpu_tests.py and added as semantic fixtures with hand constants and a Python reference. The design.md rows name the tests. AI-assisted.
# Conflicts: # docs/design.md
|
Tested 8b00d4e 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 8b00d4e on RDNA2: AMD Radeon integrated graphics of a Ryzen 7 9800X3D (gfx1036, subgroup 32..64), AMD driver 32.0.13036.4, Windows 10, Vulkan SDK 1.4.363.0.
So the legacy zero rule (0·inf and NaN·−0 → +0), the denormal-product flush and the One thing: the PR description talks about EGEN-COV-W64EXEC / AI-assisted (Claude Code). |
|
Tested
The new No game files. AI-assisted (Claude Code). 🤖 Generated with Claude Code |
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested 8b00d4e 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. A Turing datapoint next to the Ampere and AMD runs above. 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. |
|
Tested Ran
2/2 passed. The full suite from this branch also passes: 169/182 passed, 13 skipped (same set: 12 D3D12-run fixtures plus This is the native RDNA2 measurement that SHADER-340 asks for: the denormal flush in |
|
Tested Runtime and test programs built from this head (MSVC 14.51, Ninja, RelWithDebInfo), native Windows
One thing for the author: the PR description is the one from #2015. It's about EGEN-COV-W64EXEC and AI-assisted (Claude Code); I checked the results. |
Conflicts: docs/design.md tests/semantic/regen_fixtures.py AI-assisted.
|
Merged main (1ed9c01) again; CPU checks and the PR's GPU tests pass on Radeon RDNA2 iGPU. AI-assisted. |
docs/design.md tests/semantic/test_value_semantics.py AI-assisted.
docs/design.md tests/semantic/test_value_semantics.py AI-assisted.
docs/design.md tests/semantic/regen_fixtures.py tests/semantic/test_value_semantics.py AI-assisted.
|
Tested
AI-assisted (Claude Code). Synthetic shaders only, no game files. |
|
Tested 29826b2 (a re-test at the new head) on AMD Radeon RX 9070 XT (RADV GFX1201, wave32/64) and the Ryzen 7 9800X3D iGPU (RADV RAPHAEL_MENDOCINO, gfx1036), Mesa 26.2.6, Linux 7.3.4: pass, no regressions.
No game files. AI-assisted. |
|
Tested
As others have said, the description is still #2015's (EGEN-COV-W64EXEC / No game files. AI-assisted (Claude Code). |
Requested by Lucas · project thread
Claimed in the coordination issue as: EGEN-COV-W64EXEC (#1902 (comment))
What and why
An opcode inventory of
tools/rdna2spirv.pyagainstmain6a6704d (every opcode the translator handles, checked againstruntime/test/shaders/*.asm,tests/**and the fuzzers' tables) finds eight wave64 EXEC ops that no test runs at all: the translator handles them throughGen.EXEC_LOGIC, but only the and/or/andn2 kinds have tests. This adds a GPU test and the matchingtests/semanticchecks fors_xor_saveexec_b64,s_andn1_saveexec_b64,s_orn1_saveexec_b64,s_orn2_saveexec_b64,s_nand_saveexec_b64,s_nor_saveexec_b64,s_xnor_saveexec_b64,s_andn1_wrexec_b64.It is the wave64 counterpart of #1771, which covers the b32 forms; no file overlaps with it.
runtime/test/shaders/cs_w64x_saveexec_ext.asm: one 64-lane wave, one case per op. S0 comes from av_cmpinto VCC or an SGPR pair, the old EXEC is set per half. The new EXEC is measured per lane (a VGPR written under it, then read back with all lanes on), D withs_bcnt1/s_ff1, SCC withs_cselect. Each word iscode(new EXEC) << 16 | SCC << 15 | code(D)withcode = bcnt << 8 | ff1. S0 and EXEC differ between the halves in every case, so a half swap moves the lowest lane; the wrexec case's result is in the high half only, so an SCC taken from the low word would be 0. The derivation from the ISA pseudocode is in the header. Registered inW64X_DUMPS(check.py) and inrun_gpu_tests.py.tests/semantic/test_saveexec_ext_b64.py: the same program shape and S0/EXEC table astest_saveexec_b64.py(plus six pairs so every kind has a result in the low half only, the high half only, both and neither), checked lane by lane against the ISA lines as integers, plus the GPU fixture and a check that rebuilds the header's eight words from that model.No translator change: all eight match the ISA on both GPUs.
Tested
Windows 11,
python -I scripts/run_gpu_tests.py --filter cs_w64x_saveexec:LEONIDA_W64_EMULATE=1LEONIDA_W64_EMULATE=1(subgroup 32)out[0..7] = 671133712 604809224 536905768 537964544 536914948 605325368 537960448 405313576on all three; the existingcs_w64x_saveexec_b64still passes.Negative control:
EXEC_LOGIC["andn1"]changed to complement EXEC instead of S0 (one line).cs_w64x_saveexec_extthen fails on both GPUs (out[1] = 134260744,out[7] = 402692096), andtest_saveexec_ext_b64.pyfails 33 subtests (every andn1 saveexec and wrexec case plus the fixture). Reverted.python -m unittest discover -s tests/semanticOK,python tests/semantic/regen_fixtures.py --checkclean,python -I tests/test_shader_checks.pyandpython -I tests/test_run_gpu_tests.pyOK.AI-assisted.
Checklist
docs/design.md, with how it was confirmed. (No new rule.)