Skip to content

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

Done

Description

@R0Y00

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/.

Activity

  1. added
    help wanted
    on Nov 26, 2026
  2. tedin7 commented on Nov 26, 2026

    @tedin7
    Collaborator

    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.

  3. JB2WIN commented on Nov 26, 2026

    @JB2WIN
    Contributor

    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 432db95, 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.

  4. added a commit that references this issue on Nov 27, 2026
    05438d6
  5. MasterDomino commented on Nov 27, 2026

    @MasterDomino
    Collaborator

    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 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