Skip to content

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

Backlog

Description

@R0Y00

Refs #2413, #3210 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 #3308.

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.

Activity

  1. added
    help wanted
    on Nov 28, 2026
  2. SimSalabimse commented on Nov 28, 2026

    @SimSalabimse
    Contributor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions