Repository navigation
rdna2spirv: the seven f16 transcendentals are measured, not assumed - #4714
liang-kai-shui wants to merge 1 commit into
Conversation
Two comments still called cos/exp/log f16 rounding "unmeasured, assumed" after the FUZZ-29 sweep (ItsNotRexed#1310) and the exhaustive gfx1036 RNE-vs-RTZ measurement (SHADER-132) landed in the f16 transcendentals row. Point at that row instead; comment-only, the emitted SPIR-V is unchanged.
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 4ff0db82b on Windows 11: pytest tests/test_mode_round.py -q -> 74 passed; git diff --check clean.
The change is comment-only: the f16 sin/cos/exp/log comments no longer call the three unmeasured, since all seven f16 transcendentals are measured (the docs/design.md f16 transcendentals row already states it). No behaviour change; no blocking issue.
|
Tested
No game files. AI-assisted (Devin). |
|
Tested
No game files. Tested and written by Claude (Claude Code), posting from @theswiss24's account. |
Claimed in the coordination issue as: #4683 (comment)
Follow-up to @Jadiac5's note on #1893 (merged).
tests/test_mode_round.py:123had already been updated to cite the exhaustive sweep; two comments in the translator still called the same rounding "unmeasured, assumed".What and why
tools/rdna2spirv.py:5966(sin/cos f16 path):# sin ignores MODE rounding on hardware (RX 6800, SHADER-35); cos is unmeasured, assumed like ittools/rdna2spirv.py:7762-7763(rcp/rsq/sqrt/sin/exp/log/cos f16):# ... exp, log (and cos below) are unmeasured, assumed like them: nearest even always.Both contradict the measured
f16 transcendentalsrow indocs/design.md(FUZZ-29 / #1310 sweep, plus the exhaustive 65,536-input RNE-vs-RTZ gfx1036 measurement in SHADER-132): all seven ignore the f16 FP_ROUND field, so nearest-even always is measured, not assumed. The comments now point at that row.Comment-only: the emitted SPIR-V and the runtime contract are unchanged.
Tested
python -m pytest tests/test_mode_round.py -q-> 74 passed (the mode-rounding contract tests, includingtest_transcendental_f16_ignores_modefor all seven ops).python -m compileall -q tools/rdna2spirv.pyclean;git diff --checkclean; one file, +3/??.AI-assisted.
Checklist
docs/design.md??not applicable (comments only).