shader: capture and replay view types for GPU-selected global SRV slots #2908

Closed
opened 2026-11-26 18:46:51 +00:00 by R0Y00 · 3 comments
R0Y00 commented 2026-11-26 18:46:51 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T18:46:51Z.


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. Run ctest --preset dev --no-tests=error -R '^(native_direct_container|native_dispatch_states_warp)$' -V. Use the compile_dxil SDK CACHE gfx1013-container-cs --requests INPUT_DIRECTORY OUTPUT_DIRECTORY request path for the synthetic replay. Register the new test under native_global_srv_heap_replay and run ctest --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/.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6633122765 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2908). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T18:46:51Z. --- 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`. Run `ctest --preset dev --no-tests=error -R '^(native_direct_container|native_dispatch_states_warp)$' -V`. Use the `compile_dxil SDK CACHE gfx1013-container-cs --requests INPUT_DIRECTORY OUTPUT_DIRECTORY` request path for the synthetic replay. Register the new test under `native_global_srv_heap_replay` and run `ctest --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 commented 2026-11-26 19:10:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T19:10:01Z.


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 target cpp-migration.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7201266078 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2908#issuecomment-7201266078). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T19:10:01Z. --- **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 target `cpp-migration`.~~ AI-assisted; commands listed were executed locally.
JB2WIN commented 2026-11-26 21:53:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-26T21:53:03Z.


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), target cpp-migration, and register the test as native_global_srv_heap_replay(_warp|_hardware). Environment: Windows 11 build 26200, NVIDIA GeForce RTX 3080 plus WARP. AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7204154261 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2908#issuecomment-7204154261). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-11-26T21:53:03Z. --- 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), target `cpp-migration`, and register the test as `native_global_srv_heap_replay(_warp|_hardware)`. Environment: Windows 11 build 26200, NVIDIA GeForce RTX 3080 plus WARP. AI-assisted.
MasterDomino commented 2026-11-27 01:03:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-27T01:03:30Z.


Closed by #2972 (@JB2WIN, continuing @tedin7's #2912), merged into cpp-migration as 05438d65. native_global_srv_heap_replay_hardware passes 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7206975239 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2908#issuecomment-7206975239). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-27T01:03:30Z. --- Closed by #2972 (@JB2WIN, continuing @tedin7's #2912), merged into `cpp-migration` as `05438d65`. `native_global_srv_heap_replay_hardware` passes 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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows#2908
No description provided.