shader: lower s_absdiff_i32 in the direct compute path #3054
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#3054
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?
@pigalot on GitHub · 2026-11-27 12:27 UTC · original
Part of the instruction-coverage item of #2935. Target branch
main.Gap. The direct C++ compute path refuses
s_absdiff_i32withdirect DXIL lowering for s_absdiff_i32.gfx2hlsl.py,tools/pixel_aot.pyand the HLSL path insrc/gfx1013_compute_native.cppalready lower it, with the same rules:Measured. I ran
compile_dxil --refusals(counts only) atmain1ec2c938on a local start-up capture of 2,689 compute requests. 7 of them stop first ats_absdiff_i32. With the change below, 1 of them compiles and the other 6 stop at later refusals (3 descriptor outside the bound table, 2 image modifiers, 1 unbound numeric SGPR).Proposed.
sub, then a select of the negation for a negative difference. SCC comes from the shared scalar tail.I am taking it, and the PR follows. This issue was AI-assisted.