shader: preserve per-lane VCC across a vertex-stage control-flow join #2906
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#2906
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-26 18:46 UTC · original
Part of #870 and #2618. Target branch
cpp-migration.Claim. Open to a shader contributor. Comment here with your environment and the part you want to test before starting. Link your PR to this issue and target
cpp-migration.Deliverable. Add a source-built native gfx1013 VS whose per-invocation comparison writes VCC before a two-arm control-flow join. Consume the surviving mask with a conditional select after the join. Run both branch outcomes through the actual translated VS and a simple linked PS. Give the vertices distinct inputs so the expected output includes both VCC values, and retain distinguishable values from both arms. Compare the fenced output with a per-vertex CPU reference.
Negative control. Drop one incoming mask contribution or replace the joined mask with a uniform value. The fixture must detect the changed output. Keep branches that require a whole-wave VCC vote outside this slice.
Reproduction. Start with
cmake --build --preset dev --target compile_dxil offscreen_check. Run the existing interface smoke withctest --preset dev --no-tests=error -R '^native_graphics_interface_library$' -V. Register the new draw undernative_graphics_vertex_vcc_joinwith adapter variants and runctest --preset dev --no-tests=error -R '^native_graphics_vertex_vcc_join_(warp|hardware)$' -V. Report the revision, adapter, driver and debug-layer status. Record capability skips separately.Use source-built shader containers and synthetic inputs. Keep the issue and its logs title-neutral.
@tedin7 on GitHub · 2026-11-26 19:09 UTC · original · edited 2026-11-26 19:15 UTC
Releasing this claim: we are focusing on #2908, so this one is open for anyone who wants it.
@Not-Saii on GitHub · 2026-11-26 19:20 UTC · original
Claiming this.
Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP.
Part I will test: a source-built gfx1013 VS where a per-vertex compare writes VCC ahead of a two-arm join and a CNDMASK consumes it after the join, drawn through the translated VS with a linked PS under
native_graphics_vertex_vcc_join_{warp,hardware}, against a per-vertex CPU reference. Negative control: dropping one incoming mask contribution / forcing a uniform joined mask. Whole-wave VCC votes stay out of scope. PR will targetcpp-migration.@MasterDomino on GitHub · 2026-11-26 21:38 UTC · original
Closing: delivered by #2914 (@Not-Saii), squash-merged into
cpp-migrationascd752a8c. It referenced this issue withRefs, and merges outside the default branch do not close issues anyway.How it covers the deliverable:
native_graphics_vertex_vcc_join_{warp,hardware}.Results:
offscreen_check(0xC0000005). That crash is tracked in #2915 and is not specific to this fixture.Out of scope as before: whole-wave VCC votes, and a translated guest PS in place of the desktop HLSL readback PS. Open a follow-up if that is wanted.
AI-assisted.