shader: lower v_div_fixup_f64 #3675
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3675
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3673"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@lambirou on GitHub · 2026-11-30 23:50 UTC · original
lambirou:shader/div-fixup-f64→main· +497 −0 · 7 files · 6 commits · openProblem
The pixel AOT path still refused v_div_fixup_f64, while the coverage references list the VOP3 form in both gfx1013 and gfx1030. The direct-compute path has its own f16/f32 fixup handling, but the pixel path had no integer lowering or draw record for the binary64 form.
Change
DIV64_prefix: the later min/max fixture redefinesF64_ONE/F64_TWOas 64-bit integers, which made the div-fixup rows pass an integer todiv_fixup64_words., translation controls, a Python model, mutations, the coverage pin, CTest entries and documentation.Tests
Commands run in the worktree:
Results:
Coverage delta
The record contains exactly v_div_fixup_f64, mapped to one VOP3 row in both docs/coverage/gfx1013.tsv and docs/coverage/rdna2.tsv: +1 gfx1013 and +1 gfx1030 in the isolated measurement.
Limits
This is desktop DXIL translation evidence, not a console measurement. It does not establish the console's NaN payload, subnormal, or rounding behavior. The lowering covers plain register-pair VOP3A only; modifiers, DPP, SDWA and literals remain out of scope.
AI-assisted.
@lukaslw-lab on GitHub · 2026-12-01 02:37 UTC · original · reviewed
Reviewed
e0833669by reading the diff; not built or run.Verdict: comment. The lowering is correct and I would approve it. As on #3659, the docs block carries a personal path, which is better fixed before merge. No MUST.
docs/experiments.mdblock sets-DINTAKE_PYTHON=to an absolute path inside the author's own user folder (docs/experiments.md:18350). Useout/pe-env/Scripts/python.exelike the neighbouring commands, or drop the flag.helpersemit lines at the same spots intools/pixel_aot.py(afterDIV_FMAS_HELPERS), so whichever lands second needs a small rebase.div_fixup64(tools/pixel_aot.py:693) is the f32 rule on raw (low, high) words: NaN needs the low word (m == 0x7ff00000 && l != 0), quieting sets high bit 19, the canonical NaN is0xfff80000_00000000, and zero and infinity test both words. The underflow bound −1075 is the binary64 analogue of −150 (bias + mantissa bits) on the 11-bit exponentm >> 20. The result copies S0's low word and |high| under the sign XOR. The unreachableexponent(S1) == 2047branch is correctly omitted.int_operand. A destination that partially overlaps a source pair is refused (:8319), and an exact overlap is safe because the sources are read into the helper call first. A non-entry mask, a pending sample and an unknown binary64 denormal entry state (:8315) are refused.Tests: the
draw-div-fixup-f64rows (18 rows, 144 words, lossless readback) prove each rule bit for bit, including NaN payloads in both words and the exponent boundary. The five mutations show the rows can fail. CI ranpixel_aot_check.py,form_coverage_check.pyandrdna2_tools_check.pyat this head. The WARP/hardware draws are outside theprfilter and rest on the author's WARP and RX 9060 XT runs.@R0Y00 on GitHub · 2026-12-02 19:17 UTC · original · requested changes
Both focused cases fail at
a32c9c01before the GPU draw. Independent Windows/MSVC Debugctest --preset dev --no-tests=error -V -j 1 -R '^pixel_aot_div_fixup_f64_(warp|hardware)$'reportsTypeError: cannot unpack non-iterable int objectatdiv_fixup64_words(F64_THREE, F64_TWO, F64_SIX)incheck_div_fixup64_draw. The merged file definesF64_TWOas an integer whereas the helper requires a(low, high)tuple. Please use a local/prefixed fixture constant and run both selectors after the fix. Please also use a checkout-relative interpreter path in the reproduction command.@R0Y00 on GitHub · 2026-12-02 23:10 UTC · original · reviewed
The fixture constant collision is fixed on
e71963c7. The Windows MSVC Debugpixel_aot_div_fixup_f64_(warp|hardware)tests passed 2/2, and all five built-in mutations produced the expected mismatch on each adapter.pixel_aot_check.pyandform_coverage_check.pypassed.rdna2_tools_check.pycompleted 165 cases with 19 capability skips. I also resolved the sole merge conflict locally againstmainc42b7ce3by keeping the heap-token paragraph, appending the new section, and usingout/pe-env/Scripts/python.exein the docs command. On that combined tree, both GPU tests and mutation sets passed again, as did form coverage and the 968-link docs check. Please carry the docs resolution into your branch so the required CI can run.@R0Y00 on GitHub · 2026-12-02 23:28 UTC · original · reviewed
Thanks for merging main. The current head resolves the docs conflict. The remaining documentation line below still points to a machine-specific interpreter.
@ -18651,0 +18706,4 @@```powershell.\tools\dev.ps1cmake --preset dev -DINTAKE_PYTHON=C:/Users/rolandedi/dev/labs/xbox-recomp/Xbox2Windows/out/pe-env/Scripts/python.exe@R0Y00 on GitHub · 2026-12-02 23:28 UTC · original
Use the interpreter path relative to the checkout so a contributor can run this command as written.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.