You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
shader: lower masked pixel resource-selection loops in the direct DXIL frontend #3210
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.
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.
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.
Activity
RonLogic commentedon Nov 27, 2026
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.RonLogic commentedon Nov 27, 2026
The fixed-mesh heap path is already implemented in #3091. I verified its
a48d39dccompiler 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
mainfor 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.