Repository navigation
Conversation
|
Tested 7e44daf on NVIDIA GeForce RTX 5070 Ti (driver 621.14, Windows 11): pass. Built the synthetic fixture with |
|
Tested 7e44daf on AMD Radeon RX 9060 XT (RDNA4), AMD driver 26.11.2 (32.0.32029.2010), Windows 11 Pro 26200: pass
|
|
Independent Windows GPU check of head
Synthetic fixture only; no game files. This checks translated SPIR-V on NVIDIA, not native RDNA2 hardware behavior. AI-assisted. |
|
Tested Ran AI-assisted (Claude Code). Synthetic fixtures only, no game files. |
|
Apple M4 run of
AI-assisted. |
|
Tested PR head
AI-assisted (Claude Code). |
|
CPU-side checks pass against main 3faac55: compileall clean, the semantic regression test_valu_mul_legacy_denorm.py is 4/4 including the flush-before-omod mul:2 discriminator (0x00800000 x 0x3F000000 -> 0), runtime paths and the design/table/list docs guards green. I cross-read the new .asm header, check.py and the run_gpu_tests judge branch — all three agree on the same eight words, so the CPU-verified half is consistent; the GPU execution (your Raphael + RTX 5080 runs) is not reproducible on this CPU-only host. Note: the branch reports no CI checks at all — worth a push to trigger them. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
Kam471
left a comment
There was a problem hiding this comment.
Reviewed head 7e44daf8b590898c1e18ef50e305cd7106d21ab7 (base 3faac557b).
Ran on an RTX 5070 Ti (build from main, LLVM_MC='wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc', LEONIDA_VK_DEVICE='RTX 5070 Ti'):
python -I scripts/run_gpu_tests.py --build build-gpu-base --filter cs_mul_legacy_denorm-> 1/1 passed,0 0 0 0 0 2147483648 0 0, 8/8 words exact.python -I tests/test_shader_checks.py,tests/semantic/test_rule_gpu_fixtures.py,tests/test_docs_design_rows.py-> OK.git diff --checkclean.
Registration is complete and consistent: WAVE32_DUMPS (one thread), the CS_DUMPS words, and a dedicated run_suite branch. The eight derivations check out by hand, and word 6 does pin "flush before omod" (2^-127 x mul:2 would be normal otherwise).
Verdict: good to merge.
One merge-order note, not a defect on this PR: #5363 also edits docs/design.md on the adjacent table row, and git merge-tree pr/5355 pr/5363 conflicts in that file. Whichever lands second needs a one-line rebase.
The translator contract row "
v_mul_legacy_f32default-mode f32 denormal flushing" (docs/design.md) says the legacy multiply flushes f32 denormal operands and products in the inferred game MODE: a subnormal operand reads as a signed zero, then the DX9 zero-operand override gives +0 even when an operand was negative or the other is infinity or NaN, and a nonzero subnormal product flushes to a zero that keeps its sign before the VOP3mul:2/mul:4/div:2modifiers, so with IEEE off an output multiplier turns the resulting -0 into +0. Only pixel-shader fixtures covered it, four pixels each.runtime/test/shaders/cs_mul_legacy_denorm.asmpins the same rules in eight words, one case each: 2^-149 * 2^24, -2^-149 * 2^24, -2^-149 * -NaN and +0 * +inf for the operand flush and the zero override; FLT_MIN * 0.5 and -FLT_MIN * 0.5 for the product flush and the sign it keeps;FLT_MIN * 0.5 mul:2for the flush coming before the modifier, where the product is 2^-127 and mul:2 would make it the normal 2^-126 if the flush came after; and-FLT_MIN * 0.5 div:2for the modifier turning the flushed -0 into +0. Every expected word has its derivation in the fixture header and is listed incheck.pyandscripts/run_gpu_tests.py.Tested with no translator change, on main 3faac55, on an AMD RADV RAPHAEL_MENDOCINO (Ryzen 9 9950X3D iGPU, Mesa 26.2.6-arch3.1) and an NVIDIA GeForce RTX 5080 (620.70.06):
PASS cs_mul_legacy_denorm 0 0 0 0 0 2147483648 0 0, the eight words exact on both. Dropping the translator's flush between the product and the output modifier fails themul:2word, which then reads 8388608 instead of 0, so the fixture tells the order apart.The row records the GPU check.
AI-assisted.