Skip to content

shader: lower masked pixel resource-selection loops in the direct DXIL frontend #3210

Backlog

Description

@R0Y00

Refs #2413 and #3074. The fixed mesh pixel path needs safe control flow when EXEC-partitioned resource selection introduces backward SCC edges. Existing projections cover forward arms. Keep explicit refusals for loops whose resource identity, forward progress, active lanes, or scalar values at exit cannot be established.

Use a source-built gfx1013 fixture with lanes selecting distinct descriptors, repeated indices, an empty arm, and an implicit-LOD sample whose helper lane matters. Validate generated DXIL, read back color against independent expected values, and add a negative control for an unproven backedge or side effect. Report exception cases and any hardware-only validation. PR target: main.

Activity

  1. added
    help wanted
    on Nov 27, 2026
  2. RonLogic commented on Nov 27, 2026

    @RonLogic
    Contributor

    I’ll take this on main. I’ll start from a source-built bounded resource-selection loop with repeated indices and an empty selection, then verify its direct DXIL and fenced colors on the RTX 4070 and WARP. The helper-lane witness will use an implicit gradient, and the refusal control will exercise a backedge without a proven decrease in the pending mask.

  3. RonLogic commented on Nov 27, 2026

    @RonLogic
    Contributor

    The fixed-mesh heap path is already implemented in #3091. I verified its a48d39dc compiler with a separate source-built shader. Mixed and empty selections passed for both guest widths on RTX 4070 and WARP, and the helper-only coordinate control selected the wrong mip at (6,0) on both, as intended. The no-progress backedge was refused.

    I reported one additional edge case and a tested guard in the #3091 review. The guard rejects implicit samples whose outputs can overwrite a later iteration's gradient inputs. I also have a verified bound-table variant on main for ordinary pixel shaders with a small finite SRV key. I’m keeping that change local while #3091 is open since both touch the same lowering.

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