shader: draw the e64 forms that pixel_aot accepts without a fixture #335
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/340"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by Its3rr0rsWRLD on 2026-11-21T22:42:00Z.
Change
This adds tests only; the translator is unchanged.
pixel_aotalready accepts the VOP3 (e64) encodings of these instructions, but no fixture drew them, so their translation was never checked against hardware and they did not count as covered:v_floor_f32_e64,v_fract_f32_e64,v_max_f32_e64,v_min_f32_e64andv_fmac_f32_e64.v_cmp_*_f32_e64predicates.geandnltwere already covered; this draws all 16.I found them by comparing the first words of every fixture program on
mainwith the regular expressions the translator accepts anddocs/coverage/gfx1013.tsv. The approximatev_exp,v_log,v_rcp,v_rsqandv_sqrte64 forms are also accepted but undrawn. They are left out because they cannot be compared bitwise.The new draws use what e64 adds over e32:
fmacwith modified sources.s0) from negated operands.This is independent of #337, the SDWA comparisons. It uses its own
predicate_group_e64and leavespredicate_groupalone.Verification
Commit
b860dd5plus this change, Windows 10 Enterprise 26H2 build 26300.9974, MSVC 14.51.36231, Windows SDK 10.0.26100.0 DXC.pixel_aot_hardware: Passed on NVIDIA GeForce RTX 4070 Ti (10de:2782), driver 32.0.16.1088.pixel_aot_warp: Passed on WARP 10.0.26100.9818.b860dd5. The 22 extra draws are the two arithmetic programs and the four predicate groups × five input pairs. Every draw reportsdebug_errors=0andmax_absolute_error=0.tests/pixel_aot_check.py binarypasses with the six programs added to the binary fixtures: LLVM 15.0.6llvm-mcandllvm-objcopy, disassembled throughlibLLVM-17.soandlibLLVM-18.soon Linux. LLVM prints every form exactly as written. The controls,tests/docs_links_check.pyandtests/bidi_controls_check.pypass.Evidence and follow-up
Arithmetic. The inputs are 2.5, 1.25, 3.0 and -4.0. The draws compute:
floor(-|2.5|) = -3;fract(-1.25) = 0.75;max(-3, |-4|) = 4;min(3, -|-4|) = -4;3 + (-2.5) × |1.25| = -0.125.Each channel has a wrong reference for a dropped modifier or the swapped operation, and each one reports
pixel_mismatch.Comparisons. The five existing predicate inputs are used, including -0/+0 and NaN on either side. Negating both operands swaps less and greater and keeps equality and unordered. Wherever a lowering that dropped the negations would export different channels, that reference is drawn too and reports
pixel_mismatch.This branch merges cleanly with #288, #293, #324, #329, #334 and #337.
Checklist
AI-assisted: yes. Written with Claude Opus 5.5; verified on the hardware listed above.
🤖 Generated with Claude Code
https://claude.ai/code/session_01X1EBSe6YfE2ivQChRsx1hc
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T03:04:08Z.
I tested dc3a261 together with #384 and #400 on an RTX 4060 Laptop GPU, driver 32.0.16.1656, debug layer enabled. The combined pixel_aot_warp passed in 11.24 s. The first pixel_aot_hardware CTest invocation hit its 60 s timeout. Running the same draw command directly then passed in 57.25 s, with zero final pixel error and no debug-layer errors. The same hardware command with #384 and #400 alone took 52.98 s and passed. Those two PRs have now landed.
Please give the new e64 draw cases their own CTest entry per backend, keeping the existing pixel cases and controls covered once. Please preserve hardware capability-skip behavior and the hardware test naming convention. Run both the existing and new cases with ctest --preset dev --no-tests=error -R '^pixel_aot_' --output-on-failure and include the individual timings. The remaining concern is reproducible completion under the existing test budget.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T03:12:15Z.
@Vonsek, you tested how the renderer handles capability skips in #303. Once the e64 draw cases here have their own CTest entry, would you have time to check that the new hardware test still reports a skip when the renderer returns 77? A review of that one path would help. Thanks!
Imported from R0Y00/Xbox2Windows. Originally posted by Its3rr0rsWRLD on 2026-11-22T03:23:34Z.
I'm Claude Opus 5.5, replying from Its3rr0rsWRLD's account.
Rebased onto
8afb68c, and the e64 draw cases now have their own CTest entry per backend:tests/pixel_aot_check.py draw-e64draws only the e64 cases;pixel_aot_hardwareandpixel_aot_warp(modedraw) no longer include them. The controls still run once, in thedrawandbinarymodes, anddraw-e64skips them.pixel_aot_e64_hardwareandpixel_aot_e64_warpfollow the existing naming, keep the 60 s budget, and write their own form-coverage record (form_coverage/pixel_aot_e64_<adapter>.txt), sotools/form_coverage.pystill counts the e64 forms with no change to it.pixel_aot_e64_hardwareis in theSKIP_RETURN_CODE 77list with the other hardware tests. Indraw-e64, a renderer exit of 77 is returned as 77 instead of raising.At
c7f76d9(8afb68cplus this branch), Windows 10 Enterprise 26H2 build 26300.9974, NVIDIA GeForce RTX 4070 Ti (10de:2782), driver 32.0.16.1088, WARP 10.0.26100.9818:pixel_aot_hardwarepixel_aot_e64_hardwarepixel_aot_warppixel_aot_e64_warpSkip path: with a stand-in renderer that only exits 77,
pixel_aot_check.py draw-e64 dxc <renderer> hardwareexits 77, andctest -N --show-only=json-v1listspixel_aot_e64_hardwarewithSKIP_RETURN_CODE=77andTIMEOUT=60. @Vonsek, that is the path to look at when you have time.The controls,
tests/pixel_aot_check.py binary(LLVM 15.0.6 tools with libLLVM 17 and 18) anddocs_links_check.pypass. This branch also merges cleanly with #293 as rebased today.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T08:10:12Z.
On the RTX 4060 Laptop GPU (driver 32.0.16.1656) the combined hardware draw hit the 60-second limit again. I split the predicate/rounding and blend/scalar draws into separate CTests per backend. The full draw command still runs all three groups. All eight hardware/WARP tests passed locally with the 60-second limit and separate coverage records. The hardware e64 test retains its return-77 skip rule.