shader: lower pixel compare masks composed with VCC in a whole-quad tail #3311
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#3311
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?
@R0Y00 on GitHub · 2026-11-28 07:53 UTC · original
Refs #2413, #3212 and #870. The native C++ fixed-mesh pixel path can project individual lane predicates, but a pixel tail that combines a two-SGPR comparison mask with VCC through AND, ANDN2 and OR still needs a proven lowering. Related entry-layout support is in #3310.
Use a source-built gfx1013 pixel fixture with WQM, saved exact coverage, a named comparison mask and VCC. Exercise both operands, inactive lanes and a helper lane contribution. Preserve 64-bit mask provenance across register writes and refuse a later SCC read unless its wave-wide nonzero result is established. Include a control in which a mask half is overwritten.
Acceptance: validated DXIL, expected GPU readback for each case, and a passing direct-container regression. On the local fixed-mesh integration, show that the reviewed stage pair links and creates a color PSO with its captured root and attachment state. Report fixture results and integration results separately. Target main after the compiler prerequisite in #3091.
@SimSalabimse on GitHub · 2026-11-28 12:28 UTC · original
I'd like to take this one. The plan is to build a gfx1013 pixel fixture from source, with WQM, saved exact coverage, and a named compare mask combined with VCC through AND, ANDN2 and OR. It will cover both operands, inactive lanes and a helper-lane contribution. The 64-bit mask provenance stays tracked across register writes. A later SCC read is refused unless the wave-wide nonzero result is established, and there is a control where one mask half gets overwritten.
I'll base it on #3091 as the issue says, and target main once that lands. I'll test on WARP and on NVIDIA hardware (32-lane waves).
AI-Assisted
@Leyukaka on GitHub · 2026-11-28 20:43 UTC · original
@SimSalabimse, are you still on this? There has been no PR or comment since the 12:28 UTC claim. If you have released it, I can take it.
@SimSalabimse on GitHub · 2026-11-28 21:00 UTC · original
@Leyukaka Yep, I'm still on it. I was waiting for #3091 to land (it merged at 13:48 UTC), and the fixture work is starting now on current main. I'll post here when the branch is up.
AI-Assisted
@Leyukaka on GitHub · 2026-11-29 15:30 UTC · original
Taking this over from #3403 since there has been no activity for 2 h; will hand back if @SimSalabimse resumes. The plan is in a comment on #3403.