shader: lower v_pack_b32_f16 in pixel_aot #994
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1001"
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 rasptum on 2026-11-23T20:38:09Z.
What changed
Lower the gfx1013 VOP3OpSel form
v_pack_b32_f16intools/pixel_aot.pythrough the existingINTEGERtable asand list it in
INTEGER_VOP3_ONLY, so the_e32spelling is refused. src0 supplies D[15:0] and src1 D[31:16], copied from each source's low binary16 encoding with no conversion, rounding or NaN handling (AMD RDNA ISA reference:D[15:0].f16 = S0.f16; D[31:16].f16 = S1.f16).tools/ffx_dispatch_aot.pyalready lowers the same mnemonic with this expression, so this aligns the two translators rather than adding new semantics. Sources go through the existingint_operandpath, which refuses float modifiers, wide literals, untracked or unwritten registers, outstanding samples and the whole-quad mask.tests/pixel_aot_check.pyadds adraw-pack-b32mode:R32G32B32A32_UINTbit for bit at all 64 texels.pixel_mismatch: swapped halves, src0's high half leaked into the low half, src0 taken from bits 31:16, src1 placed in the low half, and src0 read after the in-place destination write._e32,clamp,op_sel, float modifiers, a wrong operand count,v256,s106, an untracked register, an outstanding sample and the SDWA spelling.tests/form_coverage_check.pycounts("VOP3", "v_pack_b32_f16")in bothdocs/coverage/gfx1013.tsvanddocs/coverage/rdna2.tsv, with a negative control that the form is uncovered without the accepted spelling.CMakeLists.txtregisterspixel_aot_pack_b32_warpandpixel_aot_pack_b32_hardwarein the existing adapter loop, anddocs/experiments.mdrecords the definition, the refused modifiers and the measured result.Commands run
Results
Commit
b6d4151on top of185ffbe; build from a VS 2022 x64 developer environment (tools/dev.ps1), Windows 10 (10.0.19045.6466).pixel_aot_pack_b32_hardware: pass (2 of 2, NVIDIA GeForce RTX 3060, driver 32.0.15.9636)pixel_aot_pack_b32_warp: passpixel_aot_pack_b32_hardware: passpixel_aot_pack_b32_warp: pass (WARP, Microsoft Basic Render Driver 10.0.19041.5794)python -B tests/form_coverage_check.py: passpython -B tests/docs_links_check.py: pass (13 Markdown files, 195 links)python -B tests/bidi_controls_check.py: pass (796 files)ctest -R "^pixel_aot_": see the suite note belowEvery negative control was exercised by the passing draws; if a control produced the right word the batch status list would not match and the test would fail.
No capability skips: both adapters ran the tests and neither returned 77.
Suite note
The dev
pixel_aot_*suite ran 104 tests.pixel_aot_blend_scalar_hardwareandpixel_aot_title_loads_warpfailed; both reproduce identically with this branch's Python sources restored to the base commit in the same built tree (same binaries, same adapters), so they are not caused by this change — the first is a one-ULP blend difference on this GPU. A later run also recordedpixel_aot_hardwareas a timeout at the 60 s limit under residual load; run alone it passes in 54.5 s, and it passed in the earlier full run. These are listed because a skip, a pass and a failure must stay separate.The LLVM 15 assemble/disassemble round trip was not run on this machine (no LLVM 15 with gfx1013 here); the new program is added to the round-trip fixture list that the LLVM job runs.
Refs #967
AI-assisted (OpenCode)