shader: lower v_pack_b32_f16 in pixel_aot #967
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#967
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@rasptum on GitHub · 2026-11-23 19:09 UTC · original
v_pack_b32_f16is refused bytools/pixel_aot.pytoday:REJECTED: Unsupported instruction 21: v_pack_b32_f16 v12, s44, v18.The RDNA ISA defines
v_pack_b32_f16 D, S0, S1asD[15:0].f16 = S0.f16; D[31:16].f16 = S1.f16, i.e.(S0 & 0xffff) | ((S1 & 0xffff) << 16)with no conversion, rounding or NaN handling.tools/ffx_dispatch_aot.pyalready uses the same expression ("pack_b32_f16": "({0}&65535u)|({1}<<16)"), so this alignspixel_aotwith an existing in-tree translator.Taking it as one small PR: one
INTEGERrow plusINTEGER_VOP3_ONLY, thedraw-pack-b32mode with four negative controls and the static refusals, aform_coverage_checkassertion, two CTest registrations and onedocs/experiments.mdparagraph.Test plan: WARP and hardware CTest with exact
R32G32B32A32_UINTreadback at every row, four wrong references that must reportpixel_mismatch, refused_e32/clamp/op_sel/float modifiers/bad registers/SDWA, and the LLVM 15 round trip.AI-assisted (OpenCode)
@R0Y00 on GitHub · 2026-11-23 19:17 UTC · original
Please proceed with the VOP3 bit-pack slice. The result takes S0's low half into bits 15:0 and S1's low half into bits 31:16. Use distinct noisy upper halves, an asymmetric pair of low-half payloads, and an in-place destination case so the reference catches reversed packing or a source read after the destination write. Include raw NaN and signed-zero half patterns as bits and keep the unsupported modifier and pending-input refusals. The proposed LLVM 15 round-trip and integer target readback fit this scope.
@R0Y00 on GitHub · 2026-11-23 20:57 UTC · original
Completed by #1001. The source-built VOP3 bit-pack matches the raw UINT readback on WARP and RTX 4060 Laptop, including aliasing and NaN/signed-zero bit patterns. LLVM 15 round-trip and unsupported-form controls passed. Thanks for keeping the patch limited to the verified low-half shape.