shader: lower pixel compare masks composed with VCC in a whole-quad tail #3311

Open
opened 2026-11-28 08:00:36 +00:00 by github-bot · 4 comments
Owner

@⁠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.

**@⁠R0Y00** on GitHub · 2026-11-28 07:53 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3309) 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 08:00:36 +00:00
Author
Owner

@⁠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

**@⁠SimSalabimse** on GitHub · 2026-11-28 12:28 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3309#issuecomment-7239254602) 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
Author
Owner

@⁠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.

**@⁠Leyukaka** on GitHub · 2026-11-28 20:43 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3309#issuecomment-7245493553) @⁠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.
Author
Owner

@⁠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

**@⁠SimSalabimse** on GitHub · 2026-11-28 21:00 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3309#issuecomment-7245699343) @⁠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
Author
Owner

@⁠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.

**@⁠Leyukaka** on GitHub · 2026-11-29 15:30 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3309#issuecomment-7258146218) 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.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#3311
No description provided.