startup: implement command-list slot 14 Dispatch (Part of #870) #1967

Merged
tedin7 merged 11 commits from upstream-pr/1974 into main 2026-11-26 00:20:28 +00:00
tedin7 commented 2026-11-24 22:21:17 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T22:21:17Z.


Part of #870

What this unblocks: compute passes recorded on a command list (slot 14 Dispatch) reach the desktop list instead of the no-op trap, so a scene that pulls GPU-written arguments from them can run.

Changes:

  • src/startup_stubs/list_dispatch.h: forward-or-refuse decision (list open, direct/compute list, desktop compute pipeline and root bound, each group count <= 65535; zero groups is valid).
  • d3d12_xs_device.cpp: new list_dispatch, registered at slot 14 next to list_draw; refusals are logged (first 16).
  • tests/startup_list_dispatch_check.cpp plus ctest startup_list_dispatch and two WILL_FAIL controls (no-limit, no-state).

Verification:

  • git diff --check: clean.
  • x86_64-w64-mingw32-g++ -std=c++17 -Isrc tests/startup_list_dispatch_check.cpp then run under wine: 11 cases passed; --mutate no-limit: 3 of 11 failed (rc 1); --mutate no-state: 2 of 11 failed (rc 1).
  • Not run: Win2025 Release build of d3d12_xs_device.cpp (needs MSVC, __try); the end-to-end UAV fill/readback fixture on WARP + hardware is still to do. Depends softly on #1803 (compute root).

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6592573795 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T22:21:17Z. --- Part of #870 What this unblocks: compute passes recorded on a command list (slot 14 `Dispatch`) reach the desktop list instead of the no-op trap, so a scene that pulls GPU-written arguments from them can run. Changes: - `src/startup_stubs/list_dispatch.h`: forward-or-refuse decision (list open, direct/compute list, desktop compute pipeline and root bound, each group count <= 65535; zero groups is valid). - `d3d12_xs_device.cpp`: new `list_dispatch`, registered at slot 14 next to `list_draw`; refusals are logged (first 16). - `tests/startup_list_dispatch_check.cpp` plus ctest `startup_list_dispatch` and two WILL_FAIL controls (`no-limit`, `no-state`). Verification: - `git diff --check`: clean. - `x86_64-w64-mingw32-g++ -std=c++17 -Isrc tests/startup_list_dispatch_check.cpp` then run under wine: `11 cases passed`; `--mutate no-limit`: 3 of 11 failed (rc 1); `--mutate no-state`: 2 of 11 failed (rc 1). - Not run: Win2025 Release build of `d3d12_xs_device.cpp` (needs MSVC, `__try`); the end-to-end UAV fill/readback fixture on WARP + hardware is still to do. Depends softly on #1803 (compute root). AI-assisted; commands listed were executed locally.
chatgpt-codex-connector[bot commented 2026-11-24 23:03:22 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T22:35:57Z.

Review: COMMENTED


💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0e684dcf87

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6048485510 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#pullrequestreview-6048485510). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T22:35:57Z. **Review:** COMMENTED --- <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `0e684dcf87` <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". </details>
R0Y00 commented 2026-11-24 23:03:38 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T22:27:33Z.


For the planned end-to-end fixture, please combine the existing compute-root/PSO path with #1975's slots 37/39 and one source-built shader that stores distinguishable root DWORDs into a UAV. Right now #1974 issues desktop Dispatch directly, while #1975 only keeps the DWORDs in Pass.compute_constants. This pair needs a real consumer for those words. Please verify correct and swapped values after a fence, zero groups preserving the sentinel, and a second list recording after Reset with fresh bindings. One shared fixture can cover both PRs. Keep the unit decisions as negative controls.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7146254059 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#issuecomment-7146254059). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T22:27:33Z. --- For the planned end-to-end fixture, please combine the existing compute-root/PSO path with #1975's slots 37/39 and one source-built shader that stores distinguishable root DWORDs into a UAV. Right now #1974 issues desktop `Dispatch` directly, while #1975 only keeps the DWORDs in `Pass.compute_constants`. This pair needs a real consumer for those words. Please verify correct and swapped values after a fence, zero groups preserving the sentinel, and a second list recording after Reset with fresh bindings. One shared fixture can cover both PRs. Keep the unit decisions as negative controls.
chatgpt-codex-connector[bot commented 2026-11-24 23:03:39 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T22:29:38Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T22:36:00.136395Z 0e684dc Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7146296118 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#issuecomment-7146296118). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T22:29:38Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"0e684dcf8784c709971d8eb99ee8cdbdcd4c717b","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-24T22:36:00.136395Z">2026-11-24T22:36:00.136395Z</relative-time> | `0e684dc` | Draft marked ready | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
chatgpt-codex-connector[bot commented 2026-11-24 23:03:44 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T22:35:57Z.

Code review location: src/startup_stubs/d3d12_xs_device.cpp; line 2325

@@ -2303,6 +2304,26 @@ void __stdcall list_root_cbv(Wrapper* self, UINT parameter, u64 address)
     }
     pass.root_address[parameter] = (address && readable_window(address, 1)) ? address : 0;
 }
+// List slot 14, Dispatch. Forwarded only with a desktop compute pipeline and root bound and group counts within the limit.
+void __stdcall list_dispatch(Wrapper* self, UINT x, UINT y, UINT z)
+{
+    auto* list = recording(self);
+    x2w_startup::ListDispatch request;
+    request.list_open = list != nullptr;
+    if (list) request.type = list->GetType();
+    const Pass& pass = pass_of(self);
+    request.compute_pipeline = pass.compute_pipeline;
+    request.compute_root = pass.compute_root;
+    request.x = x, request.y = y, request.z = z;
+    const x2w_startup::DispatchDecision decision = x2w_startup::decide_dispatch(request);
+    if (decision != x2w_startup::DispatchDecision::forward) {
+        static LONG refusals;
+        if (first_calls(refusals, 16))
+            log("x2w-render Dispatch(%u, %u, %u) refused: %s", x, y, z, x2w_startup::dispatch_reason(decision));
+        return;
+    }
+    list->Dispatch(x, y, z);

P1 Badge Refuse dispatches with unforwarded compute root arguments

With X2W_D3D12_RENDER=1 and X2W_D3D12_LIST_NOOP=1, a desktop compute PSO requiring a root UAV passes this guard after slots 25 and 33, but slot 45 (SetComputeRootUnorderedAccessView) has no handler in build_tables() and is dropped by noop_slot(). This now records a dispatch with an unset required UAV instead of dropping unsupported work, so a valid guest producer cannot write its output and D3D12 validation can reject the recording. Forward only after the required compute arguments have actually been bound, or refuse those roots until their setters are implemented; the decision-only test cannot detect this.

Useful? React with 👍 / 👎.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4687476191 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#discussion_r4687476191). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T22:35:57Z. **Code review location:** `src/startup_stubs/d3d12_xs_device.cpp`; line 2325 ~~~~diff @@ -2303,6 +2304,26 @@ void __stdcall list_root_cbv(Wrapper* self, UINT parameter, u64 address) } pass.root_address[parameter] = (address && readable_window(address, 1)) ? address : 0; } +// List slot 14, Dispatch. Forwarded only with a desktop compute pipeline and root bound and group counts within the limit. +void __stdcall list_dispatch(Wrapper* self, UINT x, UINT y, UINT z) +{ + auto* list = recording(self); + x2w_startup::ListDispatch request; + request.list_open = list != nullptr; + if (list) request.type = list->GetType(); + const Pass& pass = pass_of(self); + request.compute_pipeline = pass.compute_pipeline; + request.compute_root = pass.compute_root; + request.x = x, request.y = y, request.z = z; + const x2w_startup::DispatchDecision decision = x2w_startup::decide_dispatch(request); + if (decision != x2w_startup::DispatchDecision::forward) { + static LONG refusals; + if (first_calls(refusals, 16)) + log("x2w-render Dispatch(%u, %u, %u) refused: %s", x, y, z, x2w_startup::dispatch_reason(decision)); + return; + } + list->Dispatch(x, y, z); ~~~~ --- **<sub><sub>![P1 Badge](https://img.shields.io/badge/P1-orange?style=flat)</sub></sub> Refuse dispatches with unforwarded compute root arguments** With `X2W_D3D12_RENDER=1` and `X2W_D3D12_LIST_NOOP=1`, a desktop compute PSO requiring a root UAV passes this guard after slots 25 and 33, but slot 45 (`SetComputeRootUnorderedAccessView`) has no handler in `build_tables()` and is dropped by `noop_slot()`. This now records a dispatch with an unset required UAV instead of dropping unsupported work, so a valid guest producer cannot write its output and D3D12 validation can reject the recording. Forward only after the required compute arguments have actually been bound, or refuse those roots until their setters are implemented; the decision-only test cannot detect this. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
chatgpt-codex-connector[bot commented 2026-11-24 23:03:44 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T22:35:58Z.

Code review location: src/startup_stubs/d3d12_xs_device.cpp; line 3708

@@ -3684,6 +3705,7 @@ void build_tables()
         list_typed[52] = reinterpret_cast<ListTyped>(&list_clear_target);
         list_typed[139] = reinterpret_cast<ListTyped>(&list_reset);
         list_typed[12] = reinterpret_cast<ListTyped>(&list_draw);
+        list_typed[14] = reinterpret_cast<ListTyped>(&list_dispatch);

P1 Badge Document the newly enabled startup Dispatch path

Enabling slot 14 changes a public startup-rendering capability, but this commit updates neither the README nor docs/experiments.md. AGENTS.md requires an update to one of those files when a public capability or reproduction command changes. Add a focused experiment entry describing the supported desktop compute-state constraints and the startup_list_dispatch reproduction command, clearly separating the device-free decision checks from the still-unverified GPU execution, so contributors can reproduce the checks and understand the new path's limits.

AGENTS.md reference: AGENTS.md:L204-L205

Useful? React with 👍 / 👎.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4687476198 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#discussion_r4687476198). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T22:35:58Z. **Code review location:** `src/startup_stubs/d3d12_xs_device.cpp`; line 3708 ~~~~diff @@ -3684,6 +3705,7 @@ void build_tables() list_typed[52] = reinterpret_cast<ListTyped>(&list_clear_target); list_typed[139] = reinterpret_cast<ListTyped>(&list_reset); list_typed[12] = reinterpret_cast<ListTyped>(&list_draw); + list_typed[14] = reinterpret_cast<ListTyped>(&list_dispatch); ~~~~ --- **<sub><sub>![P1 Badge](https://img.shields.io/badge/P1-orange?style=flat)</sub></sub> Document the newly enabled startup Dispatch path** Enabling slot 14 changes a public startup-rendering capability, but this commit updates neither the README nor `docs/experiments.md`. `AGENTS.md` requires an update to one of those files when a public capability or reproduction command changes. Add a focused experiment entry describing the supported desktop compute-state constraints and the `startup_list_dispatch` reproduction command, clearly separating the device-free decision checks from the still-unverified GPU execution, so contributors can reproduce the checks and understand the new path's limits. AGENTS.md reference: [AGENTS.md:L204-L205](https://github.com/R0Y00/Xbox2Windows/blob/0e684dcf8784c709971d8eb99ee8cdbdcd4c717b/AGENTS.md#L204-L205) Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
tedin7 commented 2026-11-25 02:01:25 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:15:33Z.

Review: COMMENTED


No description provided.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6050055659 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#pullrequestreview-6050055659). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T01:15:33Z. **Review:** COMMENTED --- _No description provided._
tedin7 commented 2026-11-25 02:01:25 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:15:35Z.

Review: COMMENTED


No description provided.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6050055983 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#pullrequestreview-6050055983). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T01:15:35Z. **Review:** COMMENTED --- _No description provided._
tedin7 commented 2026-11-25 02:02:05 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:15:37Z.


Pushed 6c901b20: Dispatch is refused under a compute root with arguments (slots 35-45 not forwarded yet), plus docs. The shared end-to-end fixture with #1975 (root DWORDs stored into a UAV, swapped values after a fence, zero groups, Reset with fresh bindings) is not done here and needs the root-argument forwarding first. This PR stays at decision-level checks.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7149366471 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#issuecomment-7149366471). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T01:15:37Z. --- Pushed 6c901b20: Dispatch is refused under a compute root with arguments (slots 35-45 not forwarded yet), plus docs. The shared end-to-end fixture with #1975 (root DWORDs stored into a UAV, swapped values after a fence, zero groups, Reset with fresh bindings) is not done here and needs the root-argument forwarding first. This PR stays at decision-level checks. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 02:02:14 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:15:32Z.

Code review location: src/startup_stubs/d3d12_xs_device.cpp; line 2325

@@ -2303,6 +2304,26 @@ void __stdcall list_root_cbv(Wrapper* self, UINT parameter, u64 address)
     }
     pass.root_address[parameter] = (address && readable_window(address, 1)) ? address : 0;
 }
+// List slot 14, Dispatch. Forwarded only with a desktop compute pipeline and root bound and group counts within the limit.
+void __stdcall list_dispatch(Wrapper* self, UINT x, UINT y, UINT z)
+{
+    auto* list = recording(self);
+    x2w_startup::ListDispatch request;
+    request.list_open = list != nullptr;
+    if (list) request.type = list->GetType();
+    const Pass& pass = pass_of(self);
+    request.compute_pipeline = pass.compute_pipeline;
+    request.compute_root = pass.compute_root;
+    request.x = x, request.y = y, request.z = z;
+    const x2w_startup::DispatchDecision decision = x2w_startup::decide_dispatch(request);
+    if (decision != x2w_startup::DispatchDecision::forward) {
+        static LONG refusals;
+        if (first_calls(refusals, 16))
+            log("x2w-render Dispatch(%u, %u, %u) refused: %s", x, y, z, x2w_startup::dispatch_reason(decision));
+        return;
+    }
+    list->Dispatch(x, y, z);

Fixed in 6c901b20: Dispatch is now refused (logged as 'compute root arguments are not forwarded') when the bound compute root declares any parameter or static sampler, since slots 35-45 are not forwarded. New negative control startup_list_dispatch_no-root-args_control. Win2025 dev+release: startup_list_dispatch 4/4.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4688853856 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#discussion_r4688853856). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T01:15:32Z. **Code review location:** `src/startup_stubs/d3d12_xs_device.cpp`; line 2325 ~~~~diff @@ -2303,6 +2304,26 @@ void __stdcall list_root_cbv(Wrapper* self, UINT parameter, u64 address) } pass.root_address[parameter] = (address && readable_window(address, 1)) ? address : 0; } +// List slot 14, Dispatch. Forwarded only with a desktop compute pipeline and root bound and group counts within the limit. +void __stdcall list_dispatch(Wrapper* self, UINT x, UINT y, UINT z) +{ + auto* list = recording(self); + x2w_startup::ListDispatch request; + request.list_open = list != nullptr; + if (list) request.type = list->GetType(); + const Pass& pass = pass_of(self); + request.compute_pipeline = pass.compute_pipeline; + request.compute_root = pass.compute_root; + request.x = x, request.y = y, request.z = z; + const x2w_startup::DispatchDecision decision = x2w_startup::decide_dispatch(request); + if (decision != x2w_startup::DispatchDecision::forward) { + static LONG refusals; + if (first_calls(refusals, 16)) + log("x2w-render Dispatch(%u, %u, %u) refused: %s", x, y, z, x2w_startup::dispatch_reason(decision)); + return; + } + list->Dispatch(x, y, z); ~~~~ --- Fixed in 6c901b20: Dispatch is now refused (logged as 'compute root arguments are not forwarded') when the bound compute root declares any parameter or static sampler, since slots 35-45 are not forwarded. New negative control startup_list_dispatch_no-root-args_control. Win2025 dev+release: startup_list_dispatch 4/4. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 02:02:14 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:15:35Z.

Code review location: src/startup_stubs/d3d12_xs_device.cpp; line 3708

@@ -3684,6 +3705,7 @@ void build_tables()
         list_typed[52] = reinterpret_cast<ListTyped>(&list_clear_target);
         list_typed[139] = reinterpret_cast<ListTyped>(&list_reset);
         list_typed[12] = reinterpret_cast<ListTyped>(&list_draw);
+        list_typed[14] = reinterpret_cast<ListTyped>(&list_dispatch);

Fixed in 6c901b20: added a 'Startup list Dispatch' section to docs/experiments.md with the supported compute-state constraints and the startup_list_dispatch reproduction command. It separates the device-free decision checks from GPU execution, which is not verified yet.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4688854220 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#discussion_r4688854220). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T01:15:35Z. **Code review location:** `src/startup_stubs/d3d12_xs_device.cpp`; line 3708 ~~~~diff @@ -3684,6 +3705,7 @@ void build_tables() list_typed[52] = reinterpret_cast<ListTyped>(&list_clear_target); list_typed[139] = reinterpret_cast<ListTyped>(&list_reset); list_typed[12] = reinterpret_cast<ListTyped>(&list_draw); + list_typed[14] = reinterpret_cast<ListTyped>(&list_dispatch); ~~~~ --- Fixed in 6c901b20: added a 'Startup list Dispatch' section to docs/experiments.md with the supported compute-state constraints and the startup_list_dispatch reproduction command. It separates the device-free decision checks from GPU execution, which is not verified yet. AI-assisted; commands listed were executed locally.
R0Y00 commented 2026-11-25 07:01:12 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T06:10:07Z.


I built the shim in Release with this head (078c3dd8) and #1803 (bb6b9a1a) replayed onto main 2017e1bb. The replay preserves main's desktop slot 33 bind. ctest --preset release -j1 --no-tests=error -R '^startup_(compute_root|list_dispatch)' passed all five cases, including the three Dispatch negative controls.

That combination still has a forwarding gap. #1803 records slot 35 tables, and #1974 refuses roots containing those tables, so the five tests do not reach a desktop UAV write. For the SRV-only path that is permitted, main's slot 43 handler returns early on an invalid upload address or wrong parameter type. It does not record which parameters actually reached the desktop list or invalidate a previous SRV after a rejected replacement. The Dispatch decision would still forward with the same root and pipeline booleans. It also does not check compatibility between the bound root and the compute PSO.

Please cover those cases before forwarding. A source-built shader on the existing slot 86 desktop PSO path can write distinguishing words to a UAV once the bounded bindings are available. Check exact fenced readback, then check the sentinel with a missing or invalid binding and after Reset. Coordinate the slot 35 case with #1803 so its nonzero UAV descriptor offset and wrong or cleared binding exercise the actual Dispatch consumer. The current unit decisions are useful independent controls.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7154511919 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#issuecomment-7154511919). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T06:10:07Z. --- I built the shim in Release with this head (`078c3dd8`) and #1803 (`bb6b9a1a`) replayed onto main `2017e1bb`. The replay preserves main's desktop slot 33 bind. `ctest --preset release -j1 --no-tests=error -R '^startup_(compute_root|list_dispatch)'` passed all five cases, including the three Dispatch negative controls. That combination still has a forwarding gap. #1803 records slot 35 tables, and #1974 refuses roots containing those tables, so the five tests do not reach a desktop UAV write. For the SRV-only path that is permitted, main's slot 43 handler returns early on an invalid upload address or wrong parameter type. It does not record which parameters actually reached the desktop list or invalidate a previous SRV after a rejected replacement. The Dispatch decision would still forward with the same root and pipeline booleans. It also does not check compatibility between the bound root and the compute PSO. Please cover those cases before forwarding. A source-built shader on the existing slot 86 desktop PSO path can write distinguishing words to a UAV once the bounded bindings are available. Check exact fenced readback, then check the sentinel with a missing or invalid binding and after Reset. Coordinate the slot 35 case with #1803 so its nonzero UAV descriptor offset and wrong or cleared binding exercise the actual Dispatch consumer. The current unit decisions are useful independent controls.
tedin7 commented 2026-11-25 07:01:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T06:23:49Z.


Pushed cd38b2ed. It closes the slot 43 and root/PSO gaps from your comment. Dispatch is now forwarded only when:

  • the compute root has no static samplers and only root SRV parameters;
  • the compute PSO was built against the bound root signature (the stream's root is recorded on the PSO). A mismatch is refused with compute pipeline was built against another root signature;
  • every root SRV the root declares was set since slot 33. Slot 43 now clears a parameter's binding before trying a replacement, so an invalid upload address or misaligned address leaves it unbound. Slot 33 clears all bindings. Otherwise the refusal is a compute root SRV is not bound.

Regression test: startup_list_dispatch_check gains cases for a root/PSO mismatch, an unbound SRV (also with zero groups) and the paired and fully bound forward. It has two new mutation controls, no-pairing and no-bound, which must fail. The docs entry is updated.

Not done here: the slot 35 table forwarding and the shared UAV readback fixture (exact fenced values, sentinel after a rejected binding and after Reset). Those need #1803's descriptor-table forwarding first, so tables and UAV roots are still refused. The unit decisions stay as negative controls.

Verification (Win2025, 3-slot pool, x2w_pipe.py win2025 1974 --force):

  • dev: 27/27 passed, 0 skipped
  • release (/O2): 27/27 passed, 0 skipped
  • includes startup_list_dispatch plus all five _control mutation tests

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7154747312 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#issuecomment-7154747312). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T06:23:49Z. --- Pushed `cd38b2ed`. It closes the slot 43 and root/PSO gaps from your comment. Dispatch is now forwarded only when: - the compute root has no static samplers and only root SRV parameters; - the compute PSO was built against the bound root signature (the stream's root is recorded on the PSO). A mismatch is refused with `compute pipeline was built against another root signature`; - every root SRV the root declares was set since slot 33. Slot 43 now clears a parameter's binding before trying a replacement, so an invalid upload address or misaligned address leaves it unbound. Slot 33 clears all bindings. Otherwise the refusal is `a compute root SRV is not bound`. Regression test: `startup_list_dispatch_check` gains cases for a root/PSO mismatch, an unbound SRV (also with zero groups) and the paired and fully bound forward. It has two new mutation controls, `no-pairing` and `no-bound`, which must fail. The docs entry is updated. Not done here: the slot 35 table forwarding and the shared UAV readback fixture (exact fenced values, sentinel after a rejected binding and after Reset). Those need #1803's descriptor-table forwarding first, so tables and UAV roots are still refused. The unit decisions stay as negative controls. Verification (Win2025, 3-slot pool, `x2w_pipe.py win2025 1974 --force`): - dev: 27/27 passed, 0 skipped - release (`/O2`): 27/27 passed, 0 skipped - includes `startup_list_dispatch` plus all five `_control` mutation tests AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 12:01:53 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T11:13:39Z.


Stage-2 verification of head 24c5f554.

  • Audit: diff, title, body and all 4 commit messages checked. No AI model names, no Co-Authored-By, no references to local probes.
  • PR body is partly stale: it describes only the first commit and says the Win2025 build was not run. The later commits (root-SRV gating, slot 43/33 binding clears, slot86 out-param fix) are not listed. Please refresh it.
  • CI: Linux Python checks, Windows build and test, and gfx1013 fixtures all pass. The /O2 job was skipped.
  • Win2025 (WARP, default 3-slot pool): python3 x2w_pipe.py win2025 1974 --force
    • dev: 100% tests passed out of 28
    • release: 100% tests passed out of 28
    • The first attempt failed with MSVC C1060: compiler is out of heap space on d3d12_xs_device.cpp while three slots compiled in parallel. An identical re-run passed. Treated as VM memory pressure, not a code defect. Worth watching if this file keeps growing.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7160764464 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#issuecomment-7160764464). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T11:13:39Z. --- Stage-2 verification of head `24c5f554`. - Audit: diff, title, body and all 4 commit messages checked. No AI model names, no `Co-Authored-By`, no references to local probes. - PR body is partly stale: it describes only the first commit and says the Win2025 build was not run. The later commits (root-SRV gating, slot 43/33 binding clears, slot86 out-param fix) are not listed. Please refresh it. - CI: Linux Python checks, Windows build and test, and gfx1013 fixtures all pass. The /O2 job was skipped. - Win2025 (WARP, default 3-slot pool): `python3 x2w_pipe.py win2025 1974 --force` - dev: `100% tests passed out of 28` - release: `100% tests passed out of 28` - The first attempt failed with MSVC `C1060: compiler is out of heap space` on `d3d12_xs_device.cpp` while three slots compiled in parallel. An identical re-run passed. Treated as VM memory pressure, not a code defect. Worth watching if this file keeps growing. AI-assisted; commands listed were executed locally.
upstream-sync closed this pull request 2026-11-25 14:04:24 +00:00
tedin7 commented 2026-11-25 14:05:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T13:51:27Z.


Closing this PR for now to keep the Windows test queue short. Nothing is wrong with it and the branch stays as it is.

We will reopen it once the queue is clear, re-run the Win2025 WARP checks at its head, and post the result here.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7164390847 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#issuecomment-7164390847). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T13:51:27Z. --- Closing this PR for now to keep the Windows test queue short. Nothing is wrong with it and the branch stays as it is. We will reopen it once the queue is clear, re-run the Win2025 WARP checks at its head, and post the result here. AI-assisted; commands listed were executed locally.
upstream-sync reopened this pull request 2026-11-25 22:01:48 +00:00
MasterDomino commented 2026-11-25 22:02:22 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T21:51:25Z.


Reopening at the unchanged head 8a4df523, per @R0Y00's 21:15 note on #2470: this lands second, after #1803 and before #1975. @tedin7, it's still your PR, so I've only changed its state.

It conflicts with current main in src/startup_stubs/d3d12_xs_device.cpp, at build_tables: this branch's list_typed[14] sits next to main's new list_typed[16]. Could you rebase it? Once the new head is green, I'll verify native slot 14 there, with a mutant control.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7175626938 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#issuecomment-7175626938). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-25T21:51:25Z. --- Reopening at the unchanged head `8a4df523`, per @R0Y00's 21:15 note on #2470: this lands second, after #1803 and before #1975. @tedin7, it's still your PR, so I've only changed its state. It conflicts with current `main` in `src/startup_stubs/d3d12_xs_device.cpp`, at `build_tables`: this branch's `list_typed[14]` sits next to `main`'s new `list_typed[16]`. Could you rebase it? Once the new head is green, I'll verify native slot 14 there, with a mutant control. AI-assisted.
MasterDomino commented 2026-11-25 23:02:05 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T22:29:36Z.


@tedin7: #1803 has landed (4ce2931d), so this PR is next in the order. It still conflicts with main in src/startup_stubs/d3d12_xs_device.cpp (the build_tables slot entries). Once you've rebased it, or merged main in, I'll verify native slot 14 at the new head with a mutant control.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7176429178 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#issuecomment-7176429178). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-25T22:29:36Z. --- @tedin7: #1803 has landed (`4ce2931d`), so this PR is next in the order. It still conflicts with `main` in `src/startup_stubs/d3d12_xs_device.cpp` (the `build_tables` slot entries). Once you've rebased it, or merged `main` in, I'll verify native slot 14 at the new head with a mutant control. AI-assisted.
tedin7 commented 2026-11-25 23:02:07 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T22:48:06Z.


@MasterDomino: #1974 is ready for review/merge at head d2c7782f (second in the #1803 -> #1974 -> #1975 order).

What changed since 8a4df523: merged current main (merge commit, no force-push). The only conflict was in build_tables: slot 14 (Dispatch) and main's slot 16 are both kept. CI is green on this head.

Note for review: the forwarded Dispatch is limited to roots with root SRVs only, so it has no observable GPU output yet. A readback test needs the UAV descriptor table consumer that follows in #1975.

Win2025 receipt on this exact head:

Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit d2c7782fd510952d2b4b641d16d29d8c70fc7b18:

  • Debug (--preset dev):
    • Build (cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim startup_list_dispatch_check startup_indirect_dispatch startup_compute_root startup_command_list_slot_names startup_list_resubmit -- -j 2): 23.10s (configure 1.76s)
    • Test (ctest --preset dev -R '^(startup_list_dispatch_check|startup_indirect_dispatch.*|startup_compute_root|startup_stubs|startup_command_list_slot_names|startup_list_resubmit.*)$' --parallel 4 --no-tests=error --output-on-failure): 13/13 passed (0.93s: startup_list_resubmit_untracked_hardware 0.24s, startup_list_resubmit_warp 0.25s, startup_list_resubmit_untracked_warp 0.24s, startup_command_list_slot_names 0.02s, startup_compute_root 0.01s, startup_indirect_dispatch_warp 0.08s, startup_list_resubmit_hardware 0.22s, startup_list_resubmit_nodebug_warp 0.21s, startup_list_resubmit_nodebug_untracked_warp 0.21s, startup_indirect_dispatch_hardware 0.07s, startup_list_resubmit_nodebug_hardware 0.20s, startup_list_resubmit_nodebug_untracked_hardware 0.23s, startup_stubs 0.83s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim startup_list_dispatch_check startup_indirect_dispatch startup_compute_root startup_command_list_slot_names startup_list_resubmit -- -j 2): 53.90s (configure 1.76s)
    • Test (ctest --preset release -R '^(startup_list_dispatch_check|startup_indirect_dispatch.*|startup_compute_root|startup_stubs|startup_command_list_slot_names|startup_list_resubmit.*)$' --parallel 4 --no-tests=error --output-on-failure): 13/13 passed (1.10s: startup_list_resubmit_untracked_warp 0.23s, startup_list_resubmit_untracked_hardware 0.26s, startup_list_resubmit_hardware 0.25s, startup_compute_root 0.01s, startup_command_list_slot_names 0.01s, startup_indirect_dispatch_warp 0.11s, startup_list_resubmit_warp 0.23s, startup_list_resubmit_nodebug_warp 0.24s, startup_list_resubmit_nodebug_untracked_warp 0.22s, startup_indirect_dispatch_hardware 0.09s, startup_list_resubmit_nodebug_hardware 0.22s, startup_list_resubmit_nodebug_untracked_hardware 0.22s, startup_stubs 0.93s)
  • sccache: 1/12 hits; wall 86.6s

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7176802742 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#issuecomment-7176802742). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T22:48:06Z. --- @MasterDomino: #1974 is ready for review/merge at head `d2c7782f` (second in the #1803 -> #1974 -> #1975 order). What changed since `8a4df523`: merged current `main` (merge commit, no force-push). The only conflict was in `build_tables`: slot 14 (Dispatch) and main's slot 16 are both kept. CI is green on this head. Note for review: the forwarded Dispatch is limited to roots with root SRVs only, so it has no observable GPU output yet. A readback test needs the UAV descriptor table consumer that follows in #1975. Win2025 receipt on this exact head: Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `d2c7782fd510952d2b4b641d16d29d8c70fc7b18`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim startup_list_dispatch_check startup_indirect_dispatch startup_compute_root startup_command_list_slot_names startup_list_resubmit -- -j 2`): `23.10s` (configure `1.76s`) - Test (`ctest --preset dev -R '^(startup_list_dispatch_check|startup_indirect_dispatch.*|startup_compute_root|startup_stubs|startup_command_list_slot_names|startup_list_resubmit.*)$' --parallel 4 --no-tests=error --output-on-failure`): **13/13 passed** (`0.93s`: `startup_list_resubmit_untracked_hardware` `0.24s`, `startup_list_resubmit_warp` `0.25s`, `startup_list_resubmit_untracked_warp` `0.24s`, `startup_command_list_slot_names` `0.02s`, `startup_compute_root` `0.01s`, `startup_indirect_dispatch_warp` `0.08s`, `startup_list_resubmit_hardware` `0.22s`, `startup_list_resubmit_nodebug_warp` `0.21s`, `startup_list_resubmit_nodebug_untracked_warp` `0.21s`, `startup_indirect_dispatch_hardware` `0.07s`, `startup_list_resubmit_nodebug_hardware` `0.20s`, `startup_list_resubmit_nodebug_untracked_hardware` `0.23s`, `startup_stubs` `0.83s`) - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim startup_list_dispatch_check startup_indirect_dispatch startup_compute_root startup_command_list_slot_names startup_list_resubmit -- -j 2`): `53.90s` (configure `1.76s`) - Test (`ctest --preset release -R '^(startup_list_dispatch_check|startup_indirect_dispatch.*|startup_compute_root|startup_stubs|startup_command_list_slot_names|startup_list_resubmit.*)$' --parallel 4 --no-tests=error --output-on-failure`): **13/13 passed** (`1.10s`: `startup_list_resubmit_untracked_warp` `0.23s`, `startup_list_resubmit_untracked_hardware` `0.26s`, `startup_list_resubmit_hardware` `0.25s`, `startup_compute_root` `0.01s`, `startup_command_list_slot_names` `0.01s`, `startup_indirect_dispatch_warp` `0.11s`, `startup_list_resubmit_warp` `0.23s`, `startup_list_resubmit_nodebug_warp` `0.24s`, `startup_list_resubmit_nodebug_untracked_warp` `0.22s`, `startup_indirect_dispatch_hardware` `0.09s`, `startup_list_resubmit_nodebug_hardware` `0.22s`, `startup_list_resubmit_nodebug_untracked_hardware` `0.22s`, `startup_stubs` `0.93s`) - `sccache`: 1/12 hits; wall `86.6s` AI-assisted; commands listed were executed locally.
MasterDomino commented 2026-11-26 00:00:37 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T23:05:15Z.

Review: DISMISSED


Thanks for the merge with main. I checked out d2c7782f and built it with the dev preset on Windows 11 build 26300 (AMD Radeon RX 9070 XT, driver 32.0.32029.2010; WARP 10.0.26100.9818).

ctest --preset dev --no-tests=error -j 4 -R '^(startup_list_dispatch.*|startup_indirect_.*|startup_compute_root|startup_stubs|startup_command_list_slot_names|startup_list_resubmit.*|desktop_root_signature|cpu_shim_compute.*|d3d12x_compute_list.*)$': 92/92 passed, 0 skipped, with the hardware variants on the RX 9070 XT. The branch merges cleanly onto current main, and CI is green.

The decision and its inputs address @R0Y00's 06:10 points:

  • compute_srv_bound records only root SRVs that reached the desktop list.
  • A rejected or misaligned slot 43 replacement clears its bit, and slot 33 clears all bits.
  • Close resets the Pass before Reset.
  • Roots with tables, static samplers or non-SRV parameters are refused.
  • The PSO's stream root must be the bound root.

The header's unit decisions catch mutations of list_dispatch.h: "always forward", "root arguments ignored" and "zero groups refused" each fail startup_list_dispatch.

Blocking: native slot 14 itself is not verified

These one-line mutants in d3d12_xs_device.cpp each still pass all 92 tests:

mutant result
refusal branch in list_dispatch never taken (always forward) survives
compute_srv_bound not cleared on a slot 33 root change survives
bit not cleared on a rejected slot 43 replacement survives
request.compute_root_has_arguments = false survives
root_matches_pipeline = true (pairing off) survives
list_typed[14] registration removed (slot 14 a no-op) survives, including startup_command_list_slot_names and startup_stubs

No test records command-list slot 14 through the stand-in, so neither the request built in list_dispatch nor the binding state behind it is checked. That falls short of the merge rule's "source-built regression plus a negative control that catches the intended failure" for the forwarding.

With only root-SRV roots forwarded there's no UAV, so this PR can't have a readback. A device-level fixture can still cover the forwarding. On WARP, with the debug layer, it would drive slots 86/25/33/43/14 and assert:

  • one Dispatch(...) refused: <reason> line for each of:
    • an unset root SRV;
    • a rejected or misaligned replacement after a valid one;
    • a root change and back;
    • Close/Reset, then Dispatch without rebinding;
    • a PSO built against another root;
    • a root with a table;
    • an unbound SRV with zero groups.
  • the fully bound case: no refusal and no debug-layer error, then Close and execute to a fence.

The six mutants above should fail against that. The exact fenced UAV readback with the sentinel controls stays with the table/UAV consumer.

Smaller items

  • The Win2025 receipt's -R '^(startup_list_dispatch_check|...)$' doesn't match the registered names (startup_list_dispatch plus its five _control tests), so none of them were in the 13/13.
  • docs/experiments.md and the list_dispatch.h comment say slots 35 and 43 have no handler. Slot 43 is list_compute_upload_srv, and slot 35 has been handled since #1803. The comment above list_dispatch and the test header's list of mutations are out of date too.
  • The PR body still describes only the first commit.
  • Optional: default root_matches_pipeline and root_arguments_bound to false in ListDispatch, so a caller that omits them refuses.

For the combined review: startup_compute_dispatch_* in #2470 only builds slot 67 pipelines, so the native-versus-translated split @R0Y00 wants kept would also need a slot 86 desktop compute PSO case there.

@tedin7, if it helps the landing order, I can write that fixture and send it as a PR against your branch. Just say which you prefer.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6066193043 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#pullrequestreview-6066193043). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-25T23:05:15Z. **Review:** DISMISSED --- Thanks for the merge with `main`. I checked out `d2c7782f` and built it with the dev preset on Windows 11 build 26300 (AMD Radeon RX 9070 XT, driver 32.0.32029.2010; WARP 10.0.26100.9818). `ctest --preset dev --no-tests=error -j 4 -R '^(startup_list_dispatch.*|startup_indirect_.*|startup_compute_root|startup_stubs|startup_command_list_slot_names|startup_list_resubmit.*|desktop_root_signature|cpu_shim_compute.*|d3d12x_compute_list.*)$'`: 92/92 passed, 0 skipped, with the hardware variants on the RX 9070 XT. The branch merges cleanly onto current `main`, and CI is green. The decision and its inputs address @R0Y00's 06:10 points: - `compute_srv_bound` records only root SRVs that reached the desktop list. - A rejected or misaligned slot 43 replacement clears its bit, and slot 33 clears all bits. - Close resets the `Pass` before Reset. - Roots with tables, static samplers or non-SRV parameters are refused. - The PSO's stream root must be the bound root. The header's unit decisions catch mutations of `list_dispatch.h`: "always forward", "root arguments ignored" and "zero groups refused" each fail `startup_list_dispatch`. ### Blocking: native slot 14 itself is not verified These one-line mutants in `d3d12_xs_device.cpp` each still pass all 92 tests: | mutant | result | |---|---| | refusal branch in `list_dispatch` never taken (always forward) | survives | | `compute_srv_bound` not cleared on a slot 33 root change | survives | | bit not cleared on a rejected slot 43 replacement | survives | | `request.compute_root_has_arguments = false` | survives | | `root_matches_pipeline = true` (pairing off) | survives | | `list_typed[14]` registration removed (slot 14 a no-op) | survives, including `startup_command_list_slot_names` and `startup_stubs` | No test records command-list slot 14 through the stand-in, so neither the request built in `list_dispatch` nor the binding state behind it is checked. That falls short of the merge rule's "source-built regression plus a negative control that catches the intended failure" for the forwarding. With only root-SRV roots forwarded there's no UAV, so this PR can't have a readback. A device-level fixture can still cover the forwarding. On WARP, with the debug layer, it would drive slots 86/25/33/43/14 and assert: - one `Dispatch(...) refused: <reason>` line for each of: - an unset root SRV; - a rejected or misaligned replacement after a valid one; - a root change and back; - Close/Reset, then Dispatch without rebinding; - a PSO built against another root; - a root with a table; - an unbound SRV with zero groups. - the fully bound case: no refusal and no debug-layer error, then Close and execute to a fence. The six mutants above should fail against that. The exact fenced UAV readback with the sentinel controls stays with the table/UAV consumer. ### Smaller items - The Win2025 receipt's `-R '^(startup_list_dispatch_check|...)$'` doesn't match the registered names (`startup_list_dispatch` plus its five `_control` tests), so none of them were in the 13/13. - `docs/experiments.md` and the `list_dispatch.h` comment say slots 35 and 43 have no handler. Slot 43 is `list_compute_upload_srv`, and slot 35 has been handled since #1803. The comment above `list_dispatch` and the test header's list of mutations are out of date too. - The PR body still describes only the first commit. - Optional: default `root_matches_pipeline` and `root_arguments_bound` to `false` in `ListDispatch`, so a caller that omits them refuses. For the combined review: `startup_compute_dispatch_*` in #2470 only builds slot 67 pipelines, so the native-versus-translated split @R0Y00 wants kept would also need a slot 86 desktop compute PSO case there. @tedin7, if it helps the landing order, I can write that fixture and send it as a PR against your branch. Just say which you prefer. AI-assisted; commands listed were executed locally.
MasterDomino commented 2026-11-26 00:01:12 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T23:39:49Z.


@tedin7, as offered in my review, the native slot-14 fixture is up as a PR into this branch: https://github.com/tedin7/Xbox2Windows/pull/1. It's one test-only commit on d2c7782f: tests/startup_list_dispatch_native.cpp, its CMake entries and a docs note. Production code is unchanged.

  • What it checks:
    • every refusal reason, each as exactly one log line;
    • forwarding, proven with a pipeline-statistics query (CSInvocations);
    • all three recordings executed to a fence, with no debug-layer error.
  • Negative controls: the six device-side mutants from my review each fail it on WARP and the RX 9070 XT.
  • Runs:
    • ctest --preset dev --no-tests=error -R "^startup_list_dispatch": 9/9, also over 20 repeats;
    • the neighbour filter from my review: 95/95.

If you merge it, or carry the commit over, my change request is resolved at that head. I'll re-review and dismiss it then. Because the fixture is my work, I'd leave the merge of #1974 to @R0Y00 or you.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7177876527 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#issuecomment-7177876527). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-25T23:39:49Z. --- @tedin7, as offered in my review, the native slot-14 fixture is up as a PR into this branch: https://github.com/tedin7/Xbox2Windows/pull/1. It's one test-only commit on `d2c7782f`: `tests/startup_list_dispatch_native.cpp`, its CMake entries and a docs note. Production code is unchanged. - **What it checks:** - every refusal reason, each as exactly one log line; - forwarding, proven with a pipeline-statistics query (`CSInvocations`); - all three recordings executed to a fence, with no debug-layer error. - **Negative controls:** the six device-side mutants from my review each fail it on WARP and the RX 9070 XT. - **Runs:** - `ctest --preset dev --no-tests=error -R "^startup_list_dispatch"`: 9/9, also over 20 repeats; - the neighbour filter from my review: 95/95. If you merge it, or carry the commit over, my change request is resolved at that head. I'll re-review and dismiss it then. Because the fixture is my work, I'd leave the merge of #1974 to @R0Y00 or you. AI-assisted; commands listed were executed locally.
R0Y00 commented 2026-11-26 00:01:14 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T00:00:21Z.


I independently ran the offered native slot 14 fixture at a8275935, Windows 11 build 26200, Release, ctest --preset release --no-tests=error -j 1 -R '^startup_list_dispatch' -V. All 9 passed with no skips. WARP and RTX 4060 Laptop both reported 24 CS invocations for the initial bound Dispatch, 0 for the rejected cases, and 16 after Reset and rebind, with the debug layer enabled. The WARP skip-SRV control observed the named refusal. @tedin7, please integrate the fixture or an equivalent into your branch when resolving the current main conflicts. We can then recheck the exact upstream head and proceed with #1975 in order.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7178291246 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#issuecomment-7178291246). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T00:00:21Z. --- I independently ran the offered [native slot 14 fixture](https://github.com/tedin7/Xbox2Windows/pull/1) at `a8275935`, Windows 11 build 26200, Release, `ctest --preset release --no-tests=error -j 1 -R '^startup_list_dispatch' -V`. All 9 passed with no skips. WARP and RTX 4060 Laptop both reported 24 CS invocations for the initial bound Dispatch, 0 for the rejected cases, and 16 after Reset and rebind, with the debug layer enabled. The WARP skip-SRV control observed the named refusal. @tedin7, please integrate the fixture or an equivalent into your branch when resolving the current `main` conflicts. We can then recheck the exact upstream head and proceed with #1975 in order.
tedin7 commented 2026-11-26 00:01:15 +00:00 (Migrated from github.com)

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


@R0Y00 Cannot run Win2025 tests on d2c7782f yet because this branch has merge conflicts with main; please rebase and tag @tedin7 again.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7178304492 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#issuecomment-7178304492). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T00:01:07Z. --- @R0Y00 Cannot run Win2025 tests on `d2c7782f` yet because this branch has merge conflicts with `main`; please rebase and tag `@tedin7` again.
upstream-sync closed this pull request 2026-11-26 01:01:43 +00:00
R0Y00 commented 2026-11-26 01:01:44 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T00:14:33Z.

Review: APPROVED


I resolved the documentation conflict by keeping both the slot 14 Dispatch and the explicit-gradient sections. The fast-forward candidate 9c678547 preserves the native fixture and its author. Windows 11 build 26200 Release passed 9/9 with no skips using ctest --preset release --no-tests=error -j 1 -R '^startup_list_dispatch' -V. On WARP and RTX 4060 Laptop with the debug layer enabled, the bound call produced 24 invocations, refused calls produced zero, and Reset followed by rebind produced 16. The WARP skip-SRV control gave the expected refusal. Documentation validation checked 507 links. This verifies source-built native slot 14 forwarding.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6066811955 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#pullrequestreview-6066811955). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T00:14:33Z. **Review:** APPROVED --- I resolved the documentation conflict by keeping both the slot 14 Dispatch and the explicit-gradient sections. The fast-forward candidate `9c678547` preserves the native fixture and its author. Windows 11 build 26200 Release passed 9/9 with no skips using `ctest --preset release --no-tests=error -j 1 -R '^startup_list_dispatch' -V`. On WARP and RTX 4060 Laptop with the debug layer enabled, the bound call produced 24 invocations, refused calls produced zero, and Reset followed by rebind produced 16. The WARP skip-SRV control gave the expected refusal. Documentation validation checked 507 links. This verifies source-built native slot 14 forwarding.
MasterDomino commented 2026-11-26 01:02:09 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-26T00:06:24Z.


Thanks, @tedin7. At 221e6c4f the fixture is in unchanged: tests/startup_list_dispatch_native.cpp is byte-identical to a8275935. The list_dispatch.h comment fix is in too, so I've dismissed my change request. @R0Y00 ran the fixture 9/9 on WARP and RTX 4060 Laptop, and the six device-side mutants from my review all fail it on WARP and the RX 9070 XT.

One thing remains before this can land: main moved to 8ecaa8ec, with #2636 merged, and this branch now conflicts in docs/experiments.md only. The code still merges cleanly. Could you merge main again?

Because the fixture is my work, I'll leave the final recheck and the merge of this head to @R0Y00. #1975 follows in order.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7178401214 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#issuecomment-7178401214). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-26T00:06:24Z. --- Thanks, @tedin7. At `221e6c4f` the fixture is in unchanged: `tests/startup_list_dispatch_native.cpp` is byte-identical to `a8275935`. The `list_dispatch.h` comment fix is in too, so I've dismissed my change request. @R0Y00 ran the fixture 9/9 on WARP and RTX 4060 Laptop, and the six device-side mutants from my review all fail it on WARP and the RX 9070 XT. One thing remains before this can land: `main` moved to `8ecaa8ec`, with #2636 merged, and this branch now conflicts in **`docs/experiments.md`** only. The code still merges cleanly. Could you merge `main` again? Because the fixture is my work, I'll leave the final recheck and the merge of this head to @R0Y00. #1975 follows in order. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-26 01:02:10 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T00:20:32Z.


@MasterDomino: #1974 is ready for re-review at head 9c678547 (third-party merge of main by @R0Y00 on top of my 221e6c4f).

What changed since d2c7782f:

  • Merged main (merge commit, no force-push). Only conflict: docs/experiments.md, both sections kept.
  • Carried your fixture over: tests/startup_list_dispatch_native.cpp, its CMake entries and the docs note (commit a8275935, merged as-is). It covers the native slot 14 forwarding and refusal paths you listed, so your change request should be resolved at this head.
  • Fixed the list_dispatch.h header comment: slot 43 (root SRV) is forwarded; the other compute root-argument slots are not.
  • CI is green on this head.

Not changed: the forwarded Dispatch still has no UAV, so the fenced readback stays with the table/UAV consumer in #1975.

Win2025 receipt on this exact head, with the fixture included (22/22 in both presets, incl. startup_list_dispatch_native_warp, _hardware and the skip_srv control):

Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit 9c67854719fc62c813e9d84489a2b096ef45ade1:

  • Debug (--preset dev):
    • Build (cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim startup_list_dispatch_check startup_list_dispatch_native startup_indirect_dispatch startup_compute_root startup_command_list_slot_names startup_list_resubmit -- -j 2): 8.10s (configure 0.00s)
    • Test (ctest --preset dev -R '^(startup_list_dispatch.*|startup_indirect_dispatch.*|startup_compute_root|startup_stubs|startup_command_list_slot_names|startup_list_resubmit.*)$' --parallel 2 --no-tests=error --output-on-failure): 22/22 passed (2.54s: startup_indirect_dispatch_warp 0.16s, startup_indirect_dispatch_hardware 0.12s, startup_compute_root 0.02s, startup_command_list_slot_names 0.03s, startup_list_resubmit_warp 0.40s, startup_list_resubmit_nodebug_warp 0.25s, startup_stubs 1.13s, startup_list_resubmit_nodebug_untracked_warp 0.28s, startup_list_resubmit_untracked_warp 0.29s, startup_list_resubmit_hardware 0.24s, startup_list_resubmit_nodebug_hardware 0.25s, startup_list_resubmit_nodebug_untracked_hardware 0.23s, startup_list_dispatch 0.02s, startup_list_dispatch_no-limit_control 0.02s, startup_list_dispatch_no-state_control 0.02s, startup_list_dispatch_no-root-args_control 0.02s, startup_list_dispatch_no-pairing_control 0.02s, startup_list_dispatch_no-bound_control 0.02s, startup_list_resubmit_untracked_hardware 0.25s, startup_list_dispatch_native_hardware 0.27s, startup_list_dispatch_native_warp 0.31s, startup_list_dispatch_native_skip_srv_warp_control 0.08s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim startup_list_dispatch_check startup_list_dispatch_native startup_indirect_dispatch startup_compute_root startup_command_list_slot_names startup_list_resubmit -- -j 2): 8.33s (configure 0.00s)
    • Test (ctest --preset release -R '^(startup_list_dispatch.*|startup_indirect_dispatch.*|startup_compute_root|startup_stubs|startup_command_list_slot_names|startup_list_resubmit.*)$' --parallel 2 --no-tests=error --output-on-failure): 22/22 passed (2.58s: startup_indirect_dispatch_warp 0.15s, startup_indirect_dispatch_hardware 0.12s, startup_compute_root 0.02s, startup_command_list_slot_names 0.03s, startup_list_resubmit_warp 0.38s, startup_list_resubmit_nodebug_warp 0.28s, startup_stubs 1.09s, startup_list_resubmit_nodebug_untracked_warp 0.27s, startup_list_resubmit_untracked_warp 0.27s, startup_list_resubmit_hardware 0.30s, startup_list_resubmit_nodebug_hardware 0.31s, startup_list_resubmit_nodebug_untracked_hardware 0.25s, startup_list_dispatch 0.02s, startup_list_dispatch_no-limit_control 0.02s, startup_list_dispatch_no-state_control 0.02s, startup_list_dispatch_no-root-args_control 0.02s, startup_list_resubmit_untracked_hardware 0.25s, startup_list_dispatch_no-pairing_control 0.02s, startup_list_dispatch_no-bound_control 0.02s, startup_list_dispatch_native_warp 0.28s, startup_list_dispatch_native_hardware 0.30s, startup_list_dispatch_native_skip_srv_warp_control 0.09s)
  • sccache: 8/14 hits; wall 27.4s

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7178654679 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1974#issuecomment-7178654679). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T00:20:32Z. --- @MasterDomino: #1974 is ready for re-review at head `9c678547` (third-party merge of `main` by @R0Y00 on top of my `221e6c4f`). What changed since `d2c7782f`: - Merged `main` (merge commit, no force-push). Only conflict: `docs/experiments.md`, both sections kept. - Carried your fixture over: `tests/startup_list_dispatch_native.cpp`, its CMake entries and the docs note (commit `a8275935`, merged as-is). It covers the native slot 14 forwarding and refusal paths you listed, so your change request should be resolved at this head. - Fixed the `list_dispatch.h` header comment: slot 43 (root SRV) is forwarded; the other compute root-argument slots are not. - CI is green on this head. Not changed: the forwarded Dispatch still has no UAV, so the fenced readback stays with the table/UAV consumer in #1975. Win2025 receipt on this exact head, with the fixture included (22/22 in both presets, incl. `startup_list_dispatch_native_warp`, `_hardware` and the `skip_srv` control): Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `9c67854719fc62c813e9d84489a2b096ef45ade1`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim startup_list_dispatch_check startup_list_dispatch_native startup_indirect_dispatch startup_compute_root startup_command_list_slot_names startup_list_resubmit -- -j 2`): `8.10s` (configure `0.00s`) - Test (`ctest --preset dev -R '^(startup_list_dispatch.*|startup_indirect_dispatch.*|startup_compute_root|startup_stubs|startup_command_list_slot_names|startup_list_resubmit.*)$' --parallel 2 --no-tests=error --output-on-failure`): **22/22 passed** (`2.54s`: `startup_indirect_dispatch_warp` `0.16s`, `startup_indirect_dispatch_hardware` `0.12s`, `startup_compute_root` `0.02s`, `startup_command_list_slot_names` `0.03s`, `startup_list_resubmit_warp` `0.40s`, `startup_list_resubmit_nodebug_warp` `0.25s`, `startup_stubs` `1.13s`, `startup_list_resubmit_nodebug_untracked_warp` `0.28s`, `startup_list_resubmit_untracked_warp` `0.29s`, `startup_list_resubmit_hardware` `0.24s`, `startup_list_resubmit_nodebug_hardware` `0.25s`, `startup_list_resubmit_nodebug_untracked_hardware` `0.23s`, `startup_list_dispatch` `0.02s`, `startup_list_dispatch_no-limit_control` `0.02s`, `startup_list_dispatch_no-state_control` `0.02s`, `startup_list_dispatch_no-root-args_control` `0.02s`, `startup_list_dispatch_no-pairing_control` `0.02s`, `startup_list_dispatch_no-bound_control` `0.02s`, `startup_list_resubmit_untracked_hardware` `0.25s`, `startup_list_dispatch_native_hardware` `0.27s`, `startup_list_dispatch_native_warp` `0.31s`, `startup_list_dispatch_native_skip_srv_warp_control` `0.08s`) - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim startup_list_dispatch_check startup_list_dispatch_native startup_indirect_dispatch startup_compute_root startup_command_list_slot_names startup_list_resubmit -- -j 2`): `8.33s` (configure `0.00s`) - Test (`ctest --preset release -R '^(startup_list_dispatch.*|startup_indirect_dispatch.*|startup_compute_root|startup_stubs|startup_command_list_slot_names|startup_list_resubmit.*)$' --parallel 2 --no-tests=error --output-on-failure`): **22/22 passed** (`2.58s`: `startup_indirect_dispatch_warp` `0.15s`, `startup_indirect_dispatch_hardware` `0.12s`, `startup_compute_root` `0.02s`, `startup_command_list_slot_names` `0.03s`, `startup_list_resubmit_warp` `0.38s`, `startup_list_resubmit_nodebug_warp` `0.28s`, `startup_stubs` `1.09s`, `startup_list_resubmit_nodebug_untracked_warp` `0.27s`, `startup_list_resubmit_untracked_warp` `0.27s`, `startup_list_resubmit_hardware` `0.30s`, `startup_list_resubmit_nodebug_hardware` `0.31s`, `startup_list_resubmit_nodebug_untracked_hardware` `0.25s`, `startup_list_dispatch` `0.02s`, `startup_list_dispatch_no-limit_control` `0.02s`, `startup_list_dispatch_no-state_control` `0.02s`, `startup_list_dispatch_no-root-args_control` `0.02s`, `startup_list_resubmit_untracked_hardware` `0.25s`, `startup_list_dispatch_no-pairing_control` `0.02s`, `startup_list_dispatch_no-bound_control` `0.02s`, `startup_list_dispatch_native_warp` `0.28s`, `startup_list_dispatch_native_hardware` `0.30s`, `startup_list_dispatch_native_skip_srv_warp_control` `0.09s`) - `sccache`: 8/14 hits; wall `27.4s` AI-assisted; commands listed were executed locally.
Sign in to join this conversation.
No reviewers
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!1967
No description provided.