shader: capture and replay view types for GPU-selected global SRV slots #2908
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#2908
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 related to #1143 and #2022. Target branch
cpp-migration.Claim. Open for the native capture and offline replay fixture. Comment here to claim it. The broader resource-heap translation in #1143 has an existing claim from @mumba17. Coordinate there if your change touches its binding contract. @ArnabSaga owns the adjacent offline native compute PR #1994.
Deliverable. Build a native compute fixture that selects a global SRV heap slot from a GPU input. Bind two valid slots of the same shader-compatible view class with different backing data and at least one incompatible view type. Capture the selected slot and the view type needed to reconstruct the binding, then exercise the same accepted and refused inputs through native recording and offline request replay. Compare fenced output for each valid selection with the CPU reference. Both paths must refuse the incompatible view with the relevant slot/type diagnostic before shader execution.
Negative control. Replay with missing slot/type metadata and with a mismatched view type. Require an explicit diagnostic, no output publication for the refused request, and unchanged UAV sentinels on the runtime path.
Reproduction. Build the existing entry points with
cmake --build --preset dev --target compile_dxil native_recording_check. Runctest --preset dev --no-tests=error -R '^(native_direct_container|native_dispatch_states_warp)$' -V. Use thecompile_dxil SDK CACHE gfx1013-container-cs --requests INPUT_DIRECTORY OUTPUT_DIRECTORYrequest path for the synthetic replay. Register the new test undernative_global_srv_heap_replayand runctest --preset dev --no-tests=error -R '^native_global_srv_heap_replay(_warp|_hardware)?$' -V. Include exact commands and report GPU capability skips separately.Use source-built shader containers, descriptor tables and synthetic resources. Put fixture outputs under
out/.@tedin7 on GitHub · 2026-11-26 19:10 UTC · original · edited 2026-11-26 21:52 UTC
Claim released (26/11): we are stepping back from this item; it is open for anyone. The work so far is on Draft #2912 (see the handover comment there).
Claiming the capture + offline replay fixture part (not the broader heap translation in #1143). Environment: Windows Server 2025 (WARP) for dev + release, plus an NVIDIA RTX 3090. Plan: record the view type of each GPU-selected global SRV slot at capture time, replay it offline, and check that a buffer, a 2D texture and an empty slot each resolve to the right view without touching other slots. Draft PR will targetcpp-migration.AI-assisted; commands listed were executed locally.
@JB2WIN on GitHub · 2026-11-26 21:53 UTC · original
Claiming the capture + offline replay fixture for this issue, as handed over by @tedin7 in #2912 (not the broader heap translation in #1143). I'll continue from the #2912 branch (head
432db950, plus the 32-lane WARP skip), targetcpp-migration, and register the test asnative_global_srv_heap_replay(_warp|_hardware). Environment: Windows 11 build 26200, NVIDIA GeForce RTX 3080 plus WARP. AI-assisted.@MasterDomino on GitHub · 2026-11-27 01:03 UTC · original
Closed by #2972 (@JB2WIN, continuing @tedin7's #2912), merged into
cpp-migrationas05438d65.native_global_srv_heap_replay_hardwarepasses on an RTX 3080 and an RX 9070 XT, and indexing the heap one slot off fails it. Passing captured views into the in-runtime native path (#2958) is the follow-up. AI-assisted.