shader: refuse DPP spellings of VOP3-only ALU ops in pixel_aot #794
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/800"
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 JB2WIN on 2026-11-23T05:40:07Z.
Change
DPP_ALUwas built from everyALUentry exceptfma. That let the VOP3-only opsmad,mad_legacy,min3,max3andmed3reach the DPP branch oflower(). For example,v_mad_f32_dpp v23, v20, v20, v20 quad_perm:[3,2,1,0] row_mask:0xf bank_mask:0xfcrashed withIndexError: Replacement index 1 out of rangeat theDPP_ALU[...].format(...)call instead of being refused. LLVM 15 has no DPP form for any of them: llvm-mc for gfx1013 reports "dpp variant of this instruction is not supported" for all five, and forfma. The scanner already rejected them.This change excludes these ops from
DPP_ALU, so the line now falls through to the normalUnsupported instructionrefusal. A control incheck_controlscovers all five.v_mac_f32_dpp, which LLVM does accept, keeps its existing behaviour: it is refused as "Invalid DPP operand count".AI-assisted (Claude Code).
Verification
On Windows 11 10.0.26200.9974, NVIDIA GeForce RTX 3080 (driver 32.0.16.2124) and WARP, at
16b433c.form_coverage_check.py,rdna2_tools_check.py,pso_readiness_check.pyanddocs_links_check.py;pixel_aot_hardware.ctest --preset dev --no-tests=error -j4: 364 of 367 passed. The three failures were timeouts incompute_store_aot_hardware,pixel_aot_predicate_rounding_hardwareandpixel_aot_blend_scalar_hardware. During that run a second worktree was doing a full build on the same machine. Rerun alone,pixel_aot_blend_scalar_hardwarepassed in 51.7 s. The other two time out alone as well. They time out the same way on plainmainon this RTX 3080, as reported in #448, and this change does not touch their modes.🤖 Generated with Claude Code