Repository navigation
feat(rdna2spirv): implement v_fma_legacy_f32 and v_fmac_legacy_f32 - #3188
klarnet2009 wants to merge 2 commits into
Conversation
|
Independently tested Both One device limitation worth documenting: the raw input word Synthetic inputs only. AI-assisted testing and reporting. |
|
Tested d502952 on Steam Deck LCD (Jupiter), AMD Custom GPU 0405 "Van Gogh", RADV Mesa 26.2.0-devel (git-5c65d4fc31), Vulkan 1.4.350, SteamOS 3.9.5 (holo), kernel 7.2.7-valve2-2-neptune-72-g31504582a073: pass. Semantic tests:
Full GPU suite:
AI-assisted (OpenCode). |
|
Measured Native, AMD Radeon iGPU (Ryzen 9 9950X3D,
So the zero rule is as the PR says (+0 product, NaN and inf included, and −0·x + −0 = +0). But the legacy ops flush f32 denormals in every operand and in the result even with This head, run-time operands ( The translated denormal cases came out flushed, as on hardware, on both GPUs. But the PR doesn't flush explicitly, so that comes from the drivers' default f32 denormal handling, which Vulkan doesn't fix (the Also worth stating in the PR: since gfx1013 has neither op, they should never occur in the console's shaders. |
|
Tested d502952 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). |
d502952 to
1b093c1
Compare
|
Tested
AI-assisted (Claude Code). Synthetic test shaders only, no game files. |
|
Thank you @TheMrBeez for measuring
Verified with
|
|
Re-tested |
460776e to
92c7df5
Compare
|
Tested Reused the instruction lines and assertions in AI-assisted verification with synthetic inputs. |
|
Tested
AI-assisted (Claude Code). Synthetic shaders only, no game files. |
92c7df5 to
72c8ea8
Compare
|
Tested At
This covers the translated result for inline inputs, including the FMAC accumulator. Denormal handling and rounding-sensitive inputs were outside this draw. AI-assisted verification. |
|
Tested current head The PR description and |
|
Tested
Test programs rebuilt from the PR head; compared against |
|
Tested
AI-assisted (Gemini 4 Neon). |
What and why
Implements
v_fma_legacy_f32andv_fmac_legacy_f32(GFX10.3 single-rounded FMA with DX9 legacy zero rule0 * anything = +0.0and without flushing f32 denormals) intools/rdna2spirv.py:read_before_write_vgprs,reg_reads_writes) forv_fmac_legacy_f32.docs/design.md(CPU-checked, not yet hardware-measured on RDNA2) and adds synthetic translator-to-interpreter + RMW tests intests/semantic/test_alu_fma_legacy_f32.py(5 tests).Tested
spirv_mini_interp.py)py -3.12 -I -m compileall -q tools/rdna2spirv.py tests/semantic/test_alu_fma_legacy_f32.py: passed (exit 0)py -3.12 -I tests/semantic/test_alu_fma_legacy_f32.py -v: Ran 5 tests in 0.056s, OKpy -3.12 -I tests/semantic/test_valu_mad_lit.py -v: Ran 15 tests in 1.574s, OKpy -3.12 -I tests/test_isa_coverage.py -v: Ran 13 tests in 3.376s, OK (skipped=3 forLEONIDA_RDNA2_ISA_XML)py -3.12 -I tests/test_ctest_registration.py -v: Ran 4 tests in 0.042s, OKtools/rdna2spirv.pytoHEADand confirmedtest_alu_fma_legacy_f32.pyfailed (1 failure, 4Unsupportederrors), then restored and re-ran 5/5 passing.Checklist
python -Icompatible)