shader: lower guarded compute v_mul_lo_u32 #909
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!909
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/909/head"
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?
@Jess-Doit on GitHub · 2026-11-23 16:48 UTC · original
Jess-Doit:shader/compute-guarded-mul-lo→main· +73 −3 · 4 files · 1 commits · merged 2026-11-23 17:02 UTCChange
Refs #721. Lower unmodified gfx1013
v_mul_lo_u32on known data words in the compute-store profile using the pixel translator's unsigned multiply expression.The source-built fixture reads t0, multiplies by a constant-buffer word, and stores the low 32 bits to u0 under the lane guard. It covers wraparound and high bits in both operands. Each of the three dispatches checks all 320 words. Stale references truncate each operand individually or change the first inactive lane. Translation checks reject an unknown source and an instruction modifier.
Verification
Tested
cc09358on Windows 10 22H2 (19045), MSVC 19.44, and Windows SDK DXC. The new fixture failed on the base revision at the unsupportedv_mul_lo_u32instruction. It passed on GTX 1060 6 GB (32.0.15.6094) and in-box WARP (10.0.19041.5794) in Debug and Release, and on app-local WARP (1.0.22 with Agility 1.620.2) in Debug. Passing draws logged zero D3D12 warnings or errors. No capability skips.Both truncation controls differed at word 0 (actual
0x9207f7d3). The inactive-lane control differed at word 150 (actual0xc5c5c5c5). The existing Release hardware store test timed out in the first run and passed in 28.32 seconds on a serial rerun.Evidence and follow-up
The fixture is original MIT-licensed assembly adapted from #835's guarded read-compute-write test. The README links to the test and its reference values.
The local AMDGPU-enabled LLVM 23.1.6 CLI assembled and decoded 108 bytes. Lowering the decoded instructions reproduced the same HLSL as the assembly source path. Upstream CI will run the full LLVM 15 binary check.
A merge simulation with upstream main at
02db28bwas clean. That revision includes the separate LDS operations from #898.Checklist
AI-assisted (Codex).