startup: clear depth and stencil views (command-list slot 51) #1799

Closed
tedin7 wants to merge 2 commits from upstream-pr/1806 into main
tedin7 commented 2026-11-24 18:58:08 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T18:58:08Z.


Refs #870.

Adds the missing command-list slot 51, ClearDepthStencilView. On main slot 51 has no handler, so it falls through to the x2w-noop stand-in: since #1701 a depth view is bound by slot 50, but nothing ever clears it on the desktop list, and a depth test then runs against whatever the new texture holds.

Slot 51 is DERIVED

Desktop ClearDepthStencilView is slot 47; the console list is shifted by four from slot 28 up. Slots 50 (OMSetRenderTargets, 46 + 4) and 52 (ClearRenderTargetView, 48 + 4) are observed at that offset, and 51 sits between them. It has not been seen in a title log; the first run past the menus will show whether it is called (x2w-render list slots per frame).

Change

  • src/startup_stubs/list_clear_depth.h (plain C++, no Windows types): which clears are forwarded. Unknown flag bits and the stencil bit of a format without a stencil plane are dropped; no plane left is "nothing to clear" (not counted); a depth that is not a number in [0, 1], a cleared plane that the view marks read-only, and unreadable rectangles are refused, because the desktop list would report an error for them.
  • list_clear_depth in d3d12_xs_device.cpp, modelled on list_clear_target: resolves the view through its shadow record (resolve_view(desktop, 21)), moves the resource to DEPTH_WRITE, calls the desktop ClearDepthStencilView, adds to clears in the totals line, logs the first four calls. A view that holds nothing adds to the unresolved count of x2w_d3d12_render_target_stats as in #1701; other refusals add to the new x2w_d3d12_depth_clear_stats(forwarded, refused).
  • The depth value is the fourth argument, so it arrives in xmm3; the generic noop_slot entry takes integer registers and would lose it. With X2W_D3D12_LIST_NOOP=1 in render mode the list table therefore points slot 51 at the handler itself (one line after the render_mode() block, not in the list_typed run). The handler keeps the per-slot call counts; a frame trace and a capture do not see slot 51.
  • Edits to the device file: one include, two counters, the export, the handler, one table line.

Tests (all source-built, no title data)

  • list_clear_depth_check: 24 cases of the decision, no device. --mutate keep-stencil and --mutate allow-read-only are registered with WILL_FAIL and fail as required.
  • startup_depth_clear_{warp,hardware}: a 4x4 D32_FLOAT_S8X24_UINT texture, a DSV heap with a writable view, a depth-read-only view, an empty slot and a stencil-read-only view. Each case is submitted and both planes are read back: both planes (0.75 / 0x11); depth only with a junk stencil argument (stencil unchanged); stencil only with a junk depth argument (depth unchanged); depth with one rectangle (only the rectangle changes); then depth 1.5, NaN, a read-only depth plane, a read-only stencil plane, unreadable rectangles and the empty view (nothing changes, 5 refusals and 1 unresolved counted), flags 0 (not counted), and a call on the closed list (ignored). Negative control: the planes are read once before any clear, and the test fails if they already hold what the first clear writes. The debug layer is on and must store no errors.
  • I chose a direct readback over a draw at 0.5 with LESS: it checks the cleared value itself and does not touch startup_stream_depth*, which #1787 also edits. A draw-based depth-reject case can follow.

Verified (Linux only)

  • g++ -std=c++17 -O2 -Wall -Wextra -fsanitize=address,undefined -fno-sanitize-recover=undefined tests/list_clear_depth_check.cpp: no warnings, 24 cases, 0 failures; both mutations fail.
  • MinGW -fsyntax-only on tests/startup_depth_clear.cpp and on d3d12_xs_device.cpp: clean apart from the MSVC-only __try/__except in local_log.h, as on main.
  • git diff --check origin/main...HEAD, tests/docs_links_check.py, tests/bidi_controls_check.py: pass.
  • git merge-tree --write-tree of this branch against the head of all 111 open PRs (including #1726, #1744, #1766, #1787, #1788, #1789, #1641 and #1441): no conflict that does not already exist between that PR and origin/main. The 42 PRs that already conflict with main are unchanged by this branch.

Not run

  • Windows: d3d12_xs_device.cpp and startup_depth_clear were not compiled or run here. The Windows Server 2025 / WARP run of ctest -R "^(startup_depth_clear_|list_clear_depth)" is the remaining check.
  • No run with a title: whether slot 51 is called, with this argument order, is exactly what stays unknown.
  • Known limit (in the docs): a clear through a writable view of a resource that an earlier bind in the same recording holds as DEPTH_READ moves it to DEPTH_WRITE.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6589170049 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1806). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T18:58:08Z. --- Refs #870. Adds the missing command-list slot 51, `ClearDepthStencilView`. On `main` slot 51 has no handler, so it falls through to the `x2w-noop` stand-in: since #1701 a depth view is bound by slot 50, but nothing ever clears it on the desktop list, and a depth test then runs against whatever the new texture holds. ## Slot 51 is DERIVED Desktop `ClearDepthStencilView` is slot 47; the console list is shifted by four from slot 28 up. Slots 50 (`OMSetRenderTargets`, 46 + 4) and 52 (`ClearRenderTargetView`, 48 + 4) are observed at that offset, and 51 sits between them. It has **not** been seen in a title log; the first run past the menus will show whether it is called (`x2w-render list slots per frame`). ## Change - `src/startup_stubs/list_clear_depth.h` (plain C++, no Windows types): which clears are forwarded. Unknown flag bits and the stencil bit of a format without a stencil plane are dropped; no plane left is "nothing to clear" (not counted); a depth that is not a number in [0, 1], a cleared plane that the view marks read-only, and unreadable rectangles are refused, because the desktop list would report an error for them. - `list_clear_depth` in `d3d12_xs_device.cpp`, modelled on `list_clear_target`: resolves the view through its shadow record (`resolve_view(desktop, 21)`), moves the resource to `DEPTH_WRITE`, calls the desktop `ClearDepthStencilView`, adds to `clears` in the totals line, logs the first four calls. A view that holds nothing adds to the unresolved count of `x2w_d3d12_render_target_stats` as in #1701; other refusals add to the new `x2w_d3d12_depth_clear_stats(forwarded, refused)`. - The depth value is the fourth argument, so it arrives in `xmm3`; the generic `noop_slot` entry takes integer registers and would lose it. With `X2W_D3D12_LIST_NOOP=1` in render mode the list table therefore points slot 51 at the handler itself (one line after the `render_mode()` block, not in the `list_typed` run). The handler keeps the per-slot call counts; a frame trace and a capture do not see slot 51. - Edits to the device file: one include, two counters, the export, the handler, one table line. ## Tests (all source-built, no title data) - `list_clear_depth_check`: 24 cases of the decision, no device. `--mutate keep-stencil` and `--mutate allow-read-only` are registered with `WILL_FAIL` and fail as required. - `startup_depth_clear_{warp,hardware}`: a 4x4 `D32_FLOAT_S8X24_UINT` texture, a DSV heap with a writable view, a depth-read-only view, an empty slot and a stencil-read-only view. Each case is submitted and both planes are read back: both planes (0.75 / 0x11); depth only with a junk stencil argument (stencil unchanged); stencil only with a junk depth argument (depth unchanged); depth with one rectangle (only the rectangle changes); then depth 1.5, NaN, a read-only depth plane, a read-only stencil plane, unreadable rectangles and the empty view (nothing changes, 5 refusals and 1 unresolved counted), flags 0 (not counted), and a call on the closed list (ignored). Negative control: the planes are read once before any clear, and the test fails if they already hold what the first clear writes. The debug layer is on and must store no errors. - I chose a direct readback over a draw at 0.5 with `LESS`: it checks the cleared value itself and does not touch `startup_stream_depth*`, which #1787 also edits. A draw-based depth-reject case can follow. ## Verified (Linux only) - `g++ -std=c++17 -O2 -Wall -Wextra -fsanitize=address,undefined -fno-sanitize-recover=undefined tests/list_clear_depth_check.cpp`: no warnings, 24 cases, 0 failures; both mutations fail. - MinGW `-fsyntax-only` on `tests/startup_depth_clear.cpp` and on `d3d12_xs_device.cpp`: clean apart from the MSVC-only `__try`/`__except` in `local_log.h`, as on `main`. - `git diff --check origin/main...HEAD`, `tests/docs_links_check.py`, `tests/bidi_controls_check.py`: pass. - `git merge-tree --write-tree` of this branch against the head of all 111 open PRs (including #1726, #1744, #1766, #1787, #1788, #1789, #1641 and #1441): no conflict that does not already exist between that PR and `origin/main`. The 42 PRs that already conflict with `main` are unchanged by this branch. ## Not run - Windows: `d3d12_xs_device.cpp` and `startup_depth_clear` were not compiled or run here. The Windows Server 2025 / WARP run of `ctest -R "^(startup_depth_clear_|list_clear_depth)"` is the remaining check. - No run with a title: whether slot 51 is called, with this argument order, is exactly what stays unknown. - Known limit (in the docs): a clear through a writable view of a resource that an earlier bind in the same recording holds as `DEPTH_READ` moves it to `DEPTH_WRITE`. AI-assisted; commands listed were executed locally.
upstream-sync closed this pull request 2026-11-24 20:00:41 +00:00
tedin7 commented 2026-11-24 20:01:17 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T19:14:47Z.


Closing this draft for now to help keep the open PR queue manageable; the branch stays preserved on the fork so it can be reopened once the queue clears.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7141815793 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1806#issuecomment-7141815793). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T19:14:47Z. --- Closing this draft for now to help keep the open PR queue manageable; the branch stays preserved on the fork so it can be reopened once the queue clears.
upstream-sync reopened this pull request 2026-11-24 22:00:47 +00:00
chatgpt-codex-connector[bot commented 2026-11-24 22:01:05 +00:00 (Migrated from github.com)

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


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:01:54.361312Z a3da298 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:7145555776 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1806#issuecomment-7145555776). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T21:54:54Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"a3da29892128e13e47ade067ed9ff08544379bf4","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:01:54.361312Z">2026-11-24T22:01:54.361312Z</relative-time> | `a3da298` | 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:03 +00:00 (Migrated from github.com)

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

Review: COMMENTED


💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a3da298921

ℹ️ 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:6048106719 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1806#pullrequestreview-6048106719). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T22:01:51Z. **Review:** COMMENTED --- <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `a3da298921` <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>
chatgpt-codex-connector[bot commented 2026-11-24 23:03:43 +00:00 (Migrated from github.com)

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

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

@@ -1886,6 +1897,64 @@ void __stdcall list_clear_target(Wrapper* self, u64 handle, const float* colour,
                                 rect_count ? rects : nullptr);
     InterlockedIncrement(&render_clears);
 }
+static_assert(x2w_clear_depth::clear_depth == D3D12_CLEAR_FLAG_DEPTH && x2w_clear_depth::clear_stencil == D3D12_CLEAR_FLAG_STENCIL,
+              "the clear flag bits of list_clear_depth.h are the SDK values");
+// List slot 51 (desktop 47 + 4), ClearDepthStencilView(view, flags, depth, stencil, rect count, rects). DERIVED, not
+// seen in a title log: slots 50 and 52 around it are observed at desktop + 4. The depth value is the fourth argument,
+// so it arrives in xmm3 and the generic noop_slot entry would lose it; the table points at this function directly
+// (see where the list table is filled) and it keeps the per-slot counts noop_slot would have kept.
+// The view is read from its shadow record, as OMSetRenderTargets does. Desktop resources rest in COMMON, so the
+// resource is moved to DEPTH_WRITE first. A view that holds nothing is counted with the unresolved handles of
+// OMSetRenderTargets; a clear the desktop list would reject (read-only plane, depth outside [0, 1], unreadable
+// rectangles) is refused and counted in x2w_d3d12_depth_clear_stats. See startup_stubs/list_clear_depth.h.
+void __stdcall list_clear_depth(Wrapper* self, u64 handle, UINT flags, float depth, UINT stencil, UINT rect_count,
+                                const D3D12_RECT* rects)
+{
+    InterlockedIncrement64(&list_slot_calls[51]);
+    InterlockedIncrement64(&list_slot_census[51]);
+    InterlockedIncrement(&draw_calls_seen);
+    auto* list = recording(self);
+    if (!list) return;
+    const u64 desktop = desktop_cpu_handle(handle);
+    const ResolvedView view = desktop ? resolve_view(desktop, 21) : ResolvedView{};
+    ID3D12Resource* target = view.resource;
+    static LONG logged;
+    if (first_calls(logged, 4))
+        log("x2w-render ClearDepthStencilView view=0x%llx target=%p flags=0x%x depth=%.3f stencil=0x%x rects=%u", handle,
+            static_cast<void*>(target), flags, depth, stencil & 0xffu, rect_count);
+    if (!target) {
+        InterlockedIncrement(&render_target_unresolved);
+        static LONG refused;
+        if (first_calls(refused, 6))
+            log("x2w-d3d12 ClearDepthStencilView skipped: view 0x%llx is %s", handle,
+                view.wrong_kind ? "not a depth stencil view"
+                                : view.skipped ? "a skipped depth stencil view" : "not a known depth stencil view");
+        return;
+    }
+    x2w_clear_depth::Request request;
+    request.flags = flags;
+    request.depth = depth;
+    request.format_has_stencil = format_has_stencil(view_format_of(desktop, target));
+    request.depth_read_only = (view.dsv_flags & D3D12_DSV_FLAG_READ_ONLY_DEPTH) != 0;
+    request.stencil_read_only = (view.dsv_flags & D3D12_DSV_FLAG_READ_ONLY_STENCIL) != 0;
+    request.rect_count = rect_count;
+    request.rects_readable = !rect_count || (rects && x2w_local::readable(rects, std::size_t{rect_count} * sizeof(D3D12_RECT)));
+    const x2w_clear_depth::Plan plan = x2w_clear_depth::plan(request);
+    if (plan.verdict == x2w_clear_depth::Verdict::nothing_to_clear) return;
+    if (plan.verdict != x2w_clear_depth::Verdict::forward) {
+        InterlockedIncrement(&render_depth_clears_refused);
+        static LONG refused_by_rule;
+        if (first_calls(refused_by_rule, 6))
+            log("x2w-d3d12 ClearDepthStencilView refused: %s (flags 0x%x, depth %.3f)", x2w_clear_depth::reason(plan.verdict), flags, depth);
+        return;
+    }
+    require_state(self, target, D3D12_RESOURCE_STATE_DEPTH_WRITE);

P2 Badge Restore the bound read-only depth state after clearing

If a list binds a fully read-only DSV via slot 50, clears that texture through a writable sibling DSV, and draws without rebinding, this call overwrites its tracked DEPTH_READ state with DEPTH_WRITE. When the following translated draw also samples the texture, sampled_state() can no longer detect the bound depth view and returns only PIXEL_SHADER_RESOURCE, leaving the still-bound DSV without its required depth-read state and causing resource-state validation failures. Preserve the state required by the bound DSV, or restore it before drawing, rather than leaving the clear's write state in pass.states.

Useful? React with 👍 / 👎.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4687145583 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1806#discussion_r4687145583). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T22:01:51Z. **Code review location:** `src/startup_stubs/d3d12_xs_device.cpp`; line 1951 ~~~~diff @@ -1886,6 +1897,64 @@ void __stdcall list_clear_target(Wrapper* self, u64 handle, const float* colour, rect_count ? rects : nullptr); InterlockedIncrement(&render_clears); } +static_assert(x2w_clear_depth::clear_depth == D3D12_CLEAR_FLAG_DEPTH && x2w_clear_depth::clear_stencil == D3D12_CLEAR_FLAG_STENCIL, + "the clear flag bits of list_clear_depth.h are the SDK values"); +// List slot 51 (desktop 47 + 4), ClearDepthStencilView(view, flags, depth, stencil, rect count, rects). DERIVED, not +// seen in a title log: slots 50 and 52 around it are observed at desktop + 4. The depth value is the fourth argument, +// so it arrives in xmm3 and the generic noop_slot entry would lose it; the table points at this function directly +// (see where the list table is filled) and it keeps the per-slot counts noop_slot would have kept. +// The view is read from its shadow record, as OMSetRenderTargets does. Desktop resources rest in COMMON, so the +// resource is moved to DEPTH_WRITE first. A view that holds nothing is counted with the unresolved handles of +// OMSetRenderTargets; a clear the desktop list would reject (read-only plane, depth outside [0, 1], unreadable +// rectangles) is refused and counted in x2w_d3d12_depth_clear_stats. See startup_stubs/list_clear_depth.h. +void __stdcall list_clear_depth(Wrapper* self, u64 handle, UINT flags, float depth, UINT stencil, UINT rect_count, + const D3D12_RECT* rects) +{ + InterlockedIncrement64(&list_slot_calls[51]); + InterlockedIncrement64(&list_slot_census[51]); + InterlockedIncrement(&draw_calls_seen); + auto* list = recording(self); + if (!list) return; + const u64 desktop = desktop_cpu_handle(handle); + const ResolvedView view = desktop ? resolve_view(desktop, 21) : ResolvedView{}; + ID3D12Resource* target = view.resource; + static LONG logged; + if (first_calls(logged, 4)) + log("x2w-render ClearDepthStencilView view=0x%llx target=%p flags=0x%x depth=%.3f stencil=0x%x rects=%u", handle, + static_cast<void*>(target), flags, depth, stencil & 0xffu, rect_count); + if (!target) { + InterlockedIncrement(&render_target_unresolved); + static LONG refused; + if (first_calls(refused, 6)) + log("x2w-d3d12 ClearDepthStencilView skipped: view 0x%llx is %s", handle, + view.wrong_kind ? "not a depth stencil view" + : view.skipped ? "a skipped depth stencil view" : "not a known depth stencil view"); + return; + } + x2w_clear_depth::Request request; + request.flags = flags; + request.depth = depth; + request.format_has_stencil = format_has_stencil(view_format_of(desktop, target)); + request.depth_read_only = (view.dsv_flags & D3D12_DSV_FLAG_READ_ONLY_DEPTH) != 0; + request.stencil_read_only = (view.dsv_flags & D3D12_DSV_FLAG_READ_ONLY_STENCIL) != 0; + request.rect_count = rect_count; + request.rects_readable = !rect_count || (rects && x2w_local::readable(rects, std::size_t{rect_count} * sizeof(D3D12_RECT))); + const x2w_clear_depth::Plan plan = x2w_clear_depth::plan(request); + if (plan.verdict == x2w_clear_depth::Verdict::nothing_to_clear) return; + if (plan.verdict != x2w_clear_depth::Verdict::forward) { + InterlockedIncrement(&render_depth_clears_refused); + static LONG refused_by_rule; + if (first_calls(refused_by_rule, 6)) + log("x2w-d3d12 ClearDepthStencilView refused: %s (flags 0x%x, depth %.3f)", x2w_clear_depth::reason(plan.verdict), flags, depth); + return; + } + require_state(self, target, D3D12_RESOURCE_STATE_DEPTH_WRITE); ~~~~ --- **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Restore the bound read-only depth state after clearing** If a list binds a fully read-only DSV via slot 50, clears that texture through a writable sibling DSV, and draws without rebinding, this call overwrites its tracked `DEPTH_READ` state with `DEPTH_WRITE`. When the following translated draw also samples the texture, `sampled_state()` can no longer detect the bound depth view and returns only `PIXEL_SHADER_RESOURCE`, leaving the still-bound DSV without its required depth-read state and causing resource-state validation failures. Preserve the state required by the bound DSV, or restore it before drawing, rather than leaving the clear's write state in `pass.states`. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
chatgpt-codex-connector[bot commented 2026-11-24 23:03:43 +00:00 (Migrated from github.com)

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

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

@@ -1886,6 +1897,64 @@ void __stdcall list_clear_target(Wrapper* self, u64 handle, const float* colour,
                                 rect_count ? rects : nullptr);
     InterlockedIncrement(&render_clears);
 }
+static_assert(x2w_clear_depth::clear_depth == D3D12_CLEAR_FLAG_DEPTH && x2w_clear_depth::clear_stencil == D3D12_CLEAR_FLAG_STENCIL,
+              "the clear flag bits of list_clear_depth.h are the SDK values");
+// List slot 51 (desktop 47 + 4), ClearDepthStencilView(view, flags, depth, stencil, rect count, rects). DERIVED, not
+// seen in a title log: slots 50 and 52 around it are observed at desktop + 4. The depth value is the fourth argument,
+// so it arrives in xmm3 and the generic noop_slot entry would lose it; the table points at this function directly
+// (see where the list table is filled) and it keeps the per-slot counts noop_slot would have kept.
+// The view is read from its shadow record, as OMSetRenderTargets does. Desktop resources rest in COMMON, so the
+// resource is moved to DEPTH_WRITE first. A view that holds nothing is counted with the unresolved handles of
+// OMSetRenderTargets; a clear the desktop list would reject (read-only plane, depth outside [0, 1], unreadable
+// rectangles) is refused and counted in x2w_d3d12_depth_clear_stats. See startup_stubs/list_clear_depth.h.
+void __stdcall list_clear_depth(Wrapper* self, u64 handle, UINT flags, float depth, UINT stencil, UINT rect_count,
+                                const D3D12_RECT* rects)
+{
+    InterlockedIncrement64(&list_slot_calls[51]);
+    InterlockedIncrement64(&list_slot_census[51]);
+    InterlockedIncrement(&draw_calls_seen);

P2 Badge Preserve timing instrumentation in the typed clear entry

In render/no-op mode the table now calls this handler directly, so the Timed(time_list) and SlotTimed objects in noop_slot() never run for slot 51. Incrementing only these counters leaves both the family timing/call totals and list_slot_ticks[51] unrecorded. Consequently, the existing five-second timing report excludes this work, and the command-list slots over 20 ms report can never identify costly depth clears. Retain the timing instrumentation in the float-aware entry as well as the counters so profiling results remain comparable.

Useful? React with 👍 / 👎.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4687145597 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1806#discussion_r4687145597). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T22:01:51Z. **Code review location:** `src/startup_stubs/d3d12_xs_device.cpp`; line 1915 ~~~~diff @@ -1886,6 +1897,64 @@ void __stdcall list_clear_target(Wrapper* self, u64 handle, const float* colour, rect_count ? rects : nullptr); InterlockedIncrement(&render_clears); } +static_assert(x2w_clear_depth::clear_depth == D3D12_CLEAR_FLAG_DEPTH && x2w_clear_depth::clear_stencil == D3D12_CLEAR_FLAG_STENCIL, + "the clear flag bits of list_clear_depth.h are the SDK values"); +// List slot 51 (desktop 47 + 4), ClearDepthStencilView(view, flags, depth, stencil, rect count, rects). DERIVED, not +// seen in a title log: slots 50 and 52 around it are observed at desktop + 4. The depth value is the fourth argument, +// so it arrives in xmm3 and the generic noop_slot entry would lose it; the table points at this function directly +// (see where the list table is filled) and it keeps the per-slot counts noop_slot would have kept. +// The view is read from its shadow record, as OMSetRenderTargets does. Desktop resources rest in COMMON, so the +// resource is moved to DEPTH_WRITE first. A view that holds nothing is counted with the unresolved handles of +// OMSetRenderTargets; a clear the desktop list would reject (read-only plane, depth outside [0, 1], unreadable +// rectangles) is refused and counted in x2w_d3d12_depth_clear_stats. See startup_stubs/list_clear_depth.h. +void __stdcall list_clear_depth(Wrapper* self, u64 handle, UINT flags, float depth, UINT stencil, UINT rect_count, + const D3D12_RECT* rects) +{ + InterlockedIncrement64(&list_slot_calls[51]); + InterlockedIncrement64(&list_slot_census[51]); + InterlockedIncrement(&draw_calls_seen); ~~~~ --- **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Preserve timing instrumentation in the typed clear entry** In render/no-op mode the table now calls this handler directly, so the `Timed(time_list)` and `SlotTimed` objects in `noop_slot()` never run for slot 51. Incrementing only these counters leaves both the family timing/call totals and `list_slot_ticks[51]` unrecorded. Consequently, the existing five-second timing report excludes this work, and the `command-list slots over 20 ms` report can never identify costly depth clears. Retain the timing instrumentation in the float-aware entry as well as the counters so profiling results remain comparable. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
tedin7 commented 2026-11-25 01:00:48 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T00:53:42Z.

Review: COMMENTED


No description provided.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6049881379 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1806#pullrequestreview-6049881379). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T00:53:42Z. **Review:** COMMENTED --- _No description provided._
tedin7 commented 2026-11-25 01:00:48 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T00:53:44Z.

Review: COMMENTED


No description provided.

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

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T00:53:42Z.

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

@@ -1886,6 +1897,64 @@ void __stdcall list_clear_target(Wrapper* self, u64 handle, const float* colour,
                                 rect_count ? rects : nullptr);
     InterlockedIncrement(&render_clears);
 }
+static_assert(x2w_clear_depth::clear_depth == D3D12_CLEAR_FLAG_DEPTH && x2w_clear_depth::clear_stencil == D3D12_CLEAR_FLAG_STENCIL,
+              "the clear flag bits of list_clear_depth.h are the SDK values");
+// List slot 51 (desktop 47 + 4), ClearDepthStencilView(view, flags, depth, stencil, rect count, rects). DERIVED, not
+// seen in a title log: slots 50 and 52 around it are observed at desktop + 4. The depth value is the fourth argument,
+// so it arrives in xmm3 and the generic noop_slot entry would lose it; the table points at this function directly
+// (see where the list table is filled) and it keeps the per-slot counts noop_slot would have kept.
+// The view is read from its shadow record, as OMSetRenderTargets does. Desktop resources rest in COMMON, so the
+// resource is moved to DEPTH_WRITE first. A view that holds nothing is counted with the unresolved handles of
+// OMSetRenderTargets; a clear the desktop list would reject (read-only plane, depth outside [0, 1], unreadable
+// rectangles) is refused and counted in x2w_d3d12_depth_clear_stats. See startup_stubs/list_clear_depth.h.
+void __stdcall list_clear_depth(Wrapper* self, u64 handle, UINT flags, float depth, UINT stencil, UINT rect_count,
+                                const D3D12_RECT* rects)
+{
+    InterlockedIncrement64(&list_slot_calls[51]);
+    InterlockedIncrement64(&list_slot_census[51]);
+    InterlockedIncrement(&draw_calls_seen);
+    auto* list = recording(self);
+    if (!list) return;
+    const u64 desktop = desktop_cpu_handle(handle);
+    const ResolvedView view = desktop ? resolve_view(desktop, 21) : ResolvedView{};
+    ID3D12Resource* target = view.resource;
+    static LONG logged;
+    if (first_calls(logged, 4))
+        log("x2w-render ClearDepthStencilView view=0x%llx target=%p flags=0x%x depth=%.3f stencil=0x%x rects=%u", handle,
+            static_cast<void*>(target), flags, depth, stencil & 0xffu, rect_count);
+    if (!target) {
+        InterlockedIncrement(&render_target_unresolved);
+        static LONG refused;
+        if (first_calls(refused, 6))
+            log("x2w-d3d12 ClearDepthStencilView skipped: view 0x%llx is %s", handle,
+                view.wrong_kind ? "not a depth stencil view"
+                                : view.skipped ? "a skipped depth stencil view" : "not a known depth stencil view");
+        return;
+    }
+    x2w_clear_depth::Request request;
+    request.flags = flags;
+    request.depth = depth;
+    request.format_has_stencil = format_has_stencil(view_format_of(desktop, target));
+    request.depth_read_only = (view.dsv_flags & D3D12_DSV_FLAG_READ_ONLY_DEPTH) != 0;
+    request.stencil_read_only = (view.dsv_flags & D3D12_DSV_FLAG_READ_ONLY_STENCIL) != 0;
+    request.rect_count = rect_count;
+    request.rects_readable = !rect_count || (rects && x2w_local::readable(rects, std::size_t{rect_count} * sizeof(D3D12_RECT)));
+    const x2w_clear_depth::Plan plan = x2w_clear_depth::plan(request);
+    if (plan.verdict == x2w_clear_depth::Verdict::nothing_to_clear) return;
+    if (plan.verdict != x2w_clear_depth::Verdict::forward) {
+        InterlockedIncrement(&render_depth_clears_refused);
+        static LONG refused_by_rule;
+        if (first_calls(refused_by_rule, 6))
+            log("x2w-d3d12 ClearDepthStencilView refused: %s (flags 0x%x, depth %.3f)", x2w_clear_depth::reason(plan.verdict), flags, depth);
+        return;
+    }
+    require_state(self, target, D3D12_RESOURCE_STATE_DEPTH_WRITE);

Fixed in 7e632a0d: the clear now puts a texture that is still bound through a read-only view back to its DEPTH_READ state, so a later sampling draw keeps the right state.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4688703574 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1806#discussion_r4688703574). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T00:53:42Z. **Code review location:** `src/startup_stubs/d3d12_xs_device.cpp`; line 1951 ~~~~diff @@ -1886,6 +1897,64 @@ void __stdcall list_clear_target(Wrapper* self, u64 handle, const float* colour, rect_count ? rects : nullptr); InterlockedIncrement(&render_clears); } +static_assert(x2w_clear_depth::clear_depth == D3D12_CLEAR_FLAG_DEPTH && x2w_clear_depth::clear_stencil == D3D12_CLEAR_FLAG_STENCIL, + "the clear flag bits of list_clear_depth.h are the SDK values"); +// List slot 51 (desktop 47 + 4), ClearDepthStencilView(view, flags, depth, stencil, rect count, rects). DERIVED, not +// seen in a title log: slots 50 and 52 around it are observed at desktop + 4. The depth value is the fourth argument, +// so it arrives in xmm3 and the generic noop_slot entry would lose it; the table points at this function directly +// (see where the list table is filled) and it keeps the per-slot counts noop_slot would have kept. +// The view is read from its shadow record, as OMSetRenderTargets does. Desktop resources rest in COMMON, so the +// resource is moved to DEPTH_WRITE first. A view that holds nothing is counted with the unresolved handles of +// OMSetRenderTargets; a clear the desktop list would reject (read-only plane, depth outside [0, 1], unreadable +// rectangles) is refused and counted in x2w_d3d12_depth_clear_stats. See startup_stubs/list_clear_depth.h. +void __stdcall list_clear_depth(Wrapper* self, u64 handle, UINT flags, float depth, UINT stencil, UINT rect_count, + const D3D12_RECT* rects) +{ + InterlockedIncrement64(&list_slot_calls[51]); + InterlockedIncrement64(&list_slot_census[51]); + InterlockedIncrement(&draw_calls_seen); + auto* list = recording(self); + if (!list) return; + const u64 desktop = desktop_cpu_handle(handle); + const ResolvedView view = desktop ? resolve_view(desktop, 21) : ResolvedView{}; + ID3D12Resource* target = view.resource; + static LONG logged; + if (first_calls(logged, 4)) + log("x2w-render ClearDepthStencilView view=0x%llx target=%p flags=0x%x depth=%.3f stencil=0x%x rects=%u", handle, + static_cast<void*>(target), flags, depth, stencil & 0xffu, rect_count); + if (!target) { + InterlockedIncrement(&render_target_unresolved); + static LONG refused; + if (first_calls(refused, 6)) + log("x2w-d3d12 ClearDepthStencilView skipped: view 0x%llx is %s", handle, + view.wrong_kind ? "not a depth stencil view" + : view.skipped ? "a skipped depth stencil view" : "not a known depth stencil view"); + return; + } + x2w_clear_depth::Request request; + request.flags = flags; + request.depth = depth; + request.format_has_stencil = format_has_stencil(view_format_of(desktop, target)); + request.depth_read_only = (view.dsv_flags & D3D12_DSV_FLAG_READ_ONLY_DEPTH) != 0; + request.stencil_read_only = (view.dsv_flags & D3D12_DSV_FLAG_READ_ONLY_STENCIL) != 0; + request.rect_count = rect_count; + request.rects_readable = !rect_count || (rects && x2w_local::readable(rects, std::size_t{rect_count} * sizeof(D3D12_RECT))); + const x2w_clear_depth::Plan plan = x2w_clear_depth::plan(request); + if (plan.verdict == x2w_clear_depth::Verdict::nothing_to_clear) return; + if (plan.verdict != x2w_clear_depth::Verdict::forward) { + InterlockedIncrement(&render_depth_clears_refused); + static LONG refused_by_rule; + if (first_calls(refused_by_rule, 6)) + log("x2w-d3d12 ClearDepthStencilView refused: %s (flags 0x%x, depth %.3f)", x2w_clear_depth::reason(plan.verdict), flags, depth); + return; + } + require_state(self, target, D3D12_RESOURCE_STATE_DEPTH_WRITE); ~~~~ --- Fixed in 7e632a0d: the clear now puts a texture that is still bound through a read-only view back to its DEPTH_READ state, so a later sampling draw keeps the right state. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 01:02:18 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T00:53:44Z.

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

@@ -1886,6 +1897,64 @@ void __stdcall list_clear_target(Wrapper* self, u64 handle, const float* colour,
                                 rect_count ? rects : nullptr);
     InterlockedIncrement(&render_clears);
 }
+static_assert(x2w_clear_depth::clear_depth == D3D12_CLEAR_FLAG_DEPTH && x2w_clear_depth::clear_stencil == D3D12_CLEAR_FLAG_STENCIL,
+              "the clear flag bits of list_clear_depth.h are the SDK values");
+// List slot 51 (desktop 47 + 4), ClearDepthStencilView(view, flags, depth, stencil, rect count, rects). DERIVED, not
+// seen in a title log: slots 50 and 52 around it are observed at desktop + 4. The depth value is the fourth argument,
+// so it arrives in xmm3 and the generic noop_slot entry would lose it; the table points at this function directly
+// (see where the list table is filled) and it keeps the per-slot counts noop_slot would have kept.
+// The view is read from its shadow record, as OMSetRenderTargets does. Desktop resources rest in COMMON, so the
+// resource is moved to DEPTH_WRITE first. A view that holds nothing is counted with the unresolved handles of
+// OMSetRenderTargets; a clear the desktop list would reject (read-only plane, depth outside [0, 1], unreadable
+// rectangles) is refused and counted in x2w_d3d12_depth_clear_stats. See startup_stubs/list_clear_depth.h.
+void __stdcall list_clear_depth(Wrapper* self, u64 handle, UINT flags, float depth, UINT stencil, UINT rect_count,
+                                const D3D12_RECT* rects)
+{
+    InterlockedIncrement64(&list_slot_calls[51]);
+    InterlockedIncrement64(&list_slot_census[51]);
+    InterlockedIncrement(&draw_calls_seen);

Fixed in 7e632a0d: the typed entry now keeps the list timing and the per-slot ticks, calls and census for slot 51 (shared with the generic entry).

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4688703760 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1806#discussion_r4688703760). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T00:53:44Z. **Code review location:** `src/startup_stubs/d3d12_xs_device.cpp`; line 1915 ~~~~diff @@ -1886,6 +1897,64 @@ void __stdcall list_clear_target(Wrapper* self, u64 handle, const float* colour, rect_count ? rects : nullptr); InterlockedIncrement(&render_clears); } +static_assert(x2w_clear_depth::clear_depth == D3D12_CLEAR_FLAG_DEPTH && x2w_clear_depth::clear_stencil == D3D12_CLEAR_FLAG_STENCIL, + "the clear flag bits of list_clear_depth.h are the SDK values"); +// List slot 51 (desktop 47 + 4), ClearDepthStencilView(view, flags, depth, stencil, rect count, rects). DERIVED, not +// seen in a title log: slots 50 and 52 around it are observed at desktop + 4. The depth value is the fourth argument, +// so it arrives in xmm3 and the generic noop_slot entry would lose it; the table points at this function directly +// (see where the list table is filled) and it keeps the per-slot counts noop_slot would have kept. +// The view is read from its shadow record, as OMSetRenderTargets does. Desktop resources rest in COMMON, so the +// resource is moved to DEPTH_WRITE first. A view that holds nothing is counted with the unresolved handles of +// OMSetRenderTargets; a clear the desktop list would reject (read-only plane, depth outside [0, 1], unreadable +// rectangles) is refused and counted in x2w_d3d12_depth_clear_stats. See startup_stubs/list_clear_depth.h. +void __stdcall list_clear_depth(Wrapper* self, u64 handle, UINT flags, float depth, UINT stencil, UINT rect_count, + const D3D12_RECT* rects) +{ + InterlockedIncrement64(&list_slot_calls[51]); + InterlockedIncrement64(&list_slot_census[51]); + InterlockedIncrement(&draw_calls_seen); ~~~~ --- Fixed in 7e632a0d: the typed entry now keeps the list timing and the per-slot ticks, calls and census for slot 51 (shared with the generic entry). AI-assisted; commands listed were executed locally.
upstream-sync closed this pull request 2026-11-25 14:04:17 +00:00
Makto94 commented 2026-11-25 14:05:08 +00:00 (Migrated from github.com)

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


First Windows build and run of this PR reported here, at head ab828adf (the body says it was not compiled or run on Windows).

Environment: NVIDIA GeForce RTX 3070 Ti (10de:2482), driver 32.0.16.2101, Windows 11 build 26300.9974, Debug build, x2w-d3d12 debug layer: 0x00000000 enabled, serial (-j1); the hardware run was on an idle machine; 0 capability skips (77).

Commands: ctest --preset dev --no-tests=error -j1 -R 'depth_clear|list_clear_depth' -E '_hardware$' -V (4/4 passed: startup_depth_clear_warp, list_clear_depth, and the two WILL_FAIL controls keep-stencil and allow-read-only, which fail as required) and ctest --preset dev --no-tests=error -j1 -R '^startup_depth_clear_hardware$' -V (passed).

startup_depth_clear_hardware on the RTX reads back both planes after each case:

  • 1 both planes: depth 0.750 at (0,0) and (3,3), stencil 11 (expected 0.750, 11)
  • 2 depth only: 0.250, stencil 11 unchanged
  • 3 stencil only: depth 0.250 unchanged, stencil 5a
  • 4 rectangle: (0,0) 0.500, (3,3) 0.250 untouched
  • 5 refusals: forwarded +0, refused +5, unresolved +1, planes unchanged
  • 0 and 6: nothing counted; before-clear control reads depth 0.000, stencil 00
  • device removed reason: 0x00000000, debug layer errors: 0

The startup_depth_clear_warp log is the same, with Microsoft Basic Render Driver. Each of the two logs (WARP and RTX) also shows four debug-layer id=821 warnings (severity 2, "clear values do not match those passed to resource creation"); they are not errors and the test counts 0 errors. The line ClearDepthStencilView skipped: view ... is not a known depth stencil view is the intended empty-view case (the test's case 5 lists "the empty view" and expects unresolved +1).

Slot 51 is still derived from the neighbouring slots, not observed in a captured log; this run does not change that.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7163573210 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1806#issuecomment-7163573210). Originally posted by [Makto94](https://github.com/Makto94) on 2026-11-25T13:17:51Z. --- First Windows build and run of this PR reported here, at head `ab828adf` (the body says it was not compiled or run on Windows). Environment: NVIDIA GeForce RTX 3070 Ti (`10de:2482`), driver 32.0.16.2101, Windows 11 build 26300.9974, Debug build, `x2w-d3d12 debug layer: 0x00000000 enabled`, serial (`-j1`); the hardware run was on an idle machine; 0 capability skips (77). Commands: `ctest --preset dev --no-tests=error -j1 -R 'depth_clear|list_clear_depth' -E '_hardware$' -V` (4/4 passed: `startup_depth_clear_warp`, `list_clear_depth`, and the two `WILL_FAIL` controls `keep-stencil` and `allow-read-only`, which fail as required) and `ctest --preset dev --no-tests=error -j1 -R '^startup_depth_clear_hardware$' -V` (passed). `startup_depth_clear_hardware` on the RTX reads back both planes after each case: - 1 both planes: depth 0.750 at (0,0) and (3,3), stencil 11 (expected 0.750, 11) - 2 depth only: 0.250, stencil 11 unchanged - 3 stencil only: depth 0.250 unchanged, stencil 5a - 4 rectangle: (0,0) 0.500, (3,3) 0.250 untouched - 5 refusals: forwarded +0, refused +5, unresolved +1, planes unchanged - 0 and 6: nothing counted; before-clear control reads depth 0.000, stencil 00 - `device removed reason: 0x00000000, debug layer errors: 0` The `startup_depth_clear_warp` log is the same, with `Microsoft Basic Render Driver`. Each of the two logs (WARP and RTX) also shows four debug-layer id=821 warnings (severity 2, "clear values do not match those passed to resource creation"); they are not errors and the test counts 0 errors. The line `ClearDepthStencilView skipped: view ... is not a known depth stencil view` is the intended empty-view case (the test's case 5 lists "the empty view" and expects unresolved +1). Slot 51 is still derived from the neighbouring slots, not observed in a captured log; this run does not change that.
tedin7 commented 2026-11-25 14:05:11 +00:00 (Migrated from github.com)

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


Thank you for the first Windows run.

Your run was at ab828adf, which is the current head, so the result applies to this PR as it stands.

  • The 4/4 WARP/list tests and startup_depth_clear_hardware on the RTX 3070 Ti all pass, with 0 capability skips, no device removal and 0 debug-layer errors.
  • The hardware readback matches the WARP readback case by case, so the clear behaviour is confirmed on a real GPU.
  • The id=821 warnings (clear value differs from the one given at resource creation) are warnings only. The test counts 0 errors, so no change is needed.
  • The ClearDepthStencilView skipped line is the intended empty-view case (case 5, unresolved +1).
  • Slot 51 is still derived from the neighbouring slots and not seen in a captured log. This run does not change that, and the PR text already says so.

No code change is needed.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7164236544 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1806#issuecomment-7164236544). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T13:45:07Z. --- Thank you for the first Windows run. Your run was at `ab828adf`, which is the current head, so the result applies to this PR as it stands. - The 4/4 WARP/list tests and `startup_depth_clear_hardware` on the RTX 3070 Ti all pass, with 0 capability skips, no device removal and 0 debug-layer errors. - The hardware readback matches the WARP readback case by case, so the clear behaviour is confirmed on a real GPU. - The id=821 warnings (clear value differs from the one given at resource creation) are warnings only. The test counts 0 errors, so no change is needed. - The `ClearDepthStencilView skipped` line is the intended empty-view case (case 5, unresolved +1). - Slot 51 is still derived from the neighbouring slots and not seen in a captured log. This run does not change that, and the PR text already says so. No code change is needed. AI-assisted; commands listed were executed locally.
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:10Z.


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:7164384097 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1806#issuecomment-7164384097). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T13:51:10Z. --- 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.

Pull request closed

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!1799
No description provided.