gpu: cover hardware and disabled slot 86 writer traces #2505

Merged
RonLogic merged 2 commits from upstream-pr/2513 into main 2026-11-25 19:56:11 +00:00
RonLogic commented 2026-11-25 19:21:14 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-25T19:21:14Z.


Change

Refs #2504 and #870. Register the existing paired slot-86 writer trace for hardware as well as WARP. Add a WARP control that validates the paired pixel readback while tracing is unset, malformed (3x), or outside the unsigned ordinal range (4294967299). The malformed and overflow values would both select the successful call if parsed as a prefix or truncated to 32 bits. Both WARP trace cases are included in the Windows PR smoke preset.

Verification

Windows 11 x64 build 26300.10075, MSVC 19.52.37029, RTX 4070 driver 32.0.16.2124 and in-box WARP 10.0.26100.10068. The fixtures reported the D3D12 debug layer enabled.

cmake --build --preset release --target startup_indirect_draw_indexed xmem_shim --parallel 4
ctest --preset release --no-tests=error -j 1 -R '^startup_indirect_mesh_lease_(warp|hardware)_dual(-trace(-disabled)?)?$' --output-on-failure
cmake --build --preset dev --target startup_indirect_draw_indexed xmem_shim --parallel 4
ctest --preset pr -N
ctest --preset dev --no-tests=error -j 1 -R '^startup_indirect_mesh_lease_warp_dual(-trace(-disabled)?)?$' --output-on-failure
python -B tests/docs_links_check.py
git diff --check origin/main...HEAD

Release 5/5 and Debug WARP 3/3 passed without skips. In the trace-enabled fixture both writers and their DIRECT waits were visible, and remapping either page refused the submission. In each selector control the paired readback passed with zero trace rows. The PR test listing includes both WARP trace cases.

I used Codex to implement the fixture changes and ran the checks on my Windows workstation.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6611948415 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2513). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-25T19:21:14Z. --- ## Change Refs #2504 and #870. Register the existing paired slot-86 writer trace for hardware as well as WARP. Add a WARP control that validates the paired pixel readback while tracing is unset, malformed (`3x`), or outside the unsigned ordinal range (`4294967299`). The malformed and overflow values would both select the successful call if parsed as a prefix or truncated to 32 bits. Both WARP trace cases are included in the Windows PR smoke preset. ## Verification Windows 11 x64 build 26300.10075, MSVC 19.52.37029, RTX 4070 driver 32.0.16.2124 and in-box WARP 10.0.26100.10068. The fixtures reported the D3D12 debug layer enabled. ```powershell cmake --build --preset release --target startup_indirect_draw_indexed xmem_shim --parallel 4 ctest --preset release --no-tests=error -j 1 -R '^startup_indirect_mesh_lease_(warp|hardware)_dual(-trace(-disabled)?)?$' --output-on-failure cmake --build --preset dev --target startup_indirect_draw_indexed xmem_shim --parallel 4 ctest --preset pr -N ctest --preset dev --no-tests=error -j 1 -R '^startup_indirect_mesh_lease_warp_dual(-trace(-disabled)?)?$' --output-on-failure python -B tests/docs_links_check.py git diff --check origin/main...HEAD ``` Release 5/5 and Debug WARP 3/3 passed without skips. In the trace-enabled fixture both writers and their DIRECT waits were visible, and remapping either page refused the submission. In each selector control the paired readback passed with zero trace rows. The PR test listing includes both WARP trace cases. I used Codex to implement the fixture changes and ran the checks on my Windows workstation.
upstream-sync closed this pull request 2026-11-25 20:04:34 +00:00
tedin7 commented 2026-11-25 20:04:34 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Review of head f226f017 against main. Comment review, no approval.

Checked:

  • startup_indirect_mesh_lease_{warp,hardware}_dual-trace are now registered through the existing foreach(backend ...) loop next to the sibling startup_indirect_mesh_cache_${backend} tests; the old WARP-only registration is gone, so there is no duplicate name.
  • New dual-trace-disabled mode runs the paired readback with the selector unset, 3x and 4294967299, and asserts no x2w-mesh86-trace rows. This matches the parser in src/startup_stubs/mesh_xmem_handoff.inl:22-30 (non-digit returns 0; the value is 10 chars max, accumulated in u64), so the two bad values really are the prefix and truncation cases for ordinal 3.
  • The PR smoke preset regex now includes both WARP trace tests; the docs paragraph in docs/experiments.md matches the behavior.
  • No other open or merged PR covers this slice (#2504 added the trace itself and is merged).

Commands run on Linux:

  • python3 tests/docs_links_check.py -> pass
  • python3 tests/bidi_controls_check.py -> pass
  • git diff --check origin/main...HEAD -> clean
  • python3 -m py_compile tests/startup_indirect_mesh_cache_check.py -> ok

The fixture runs need Windows, so the real run is the Win2025 WARP receipt that follows. The hardware variant is registered but not run on the WARP-only VM.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6063904042 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2513#pullrequestreview-6063904042). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T19:42:40Z. **Review:** COMMENTED --- Review of head f226f017 against main. Comment review, no approval. Checked: - `startup_indirect_mesh_lease_{warp,hardware}_dual-trace` are now registered through the existing `foreach(backend ...)` loop next to the sibling `startup_indirect_mesh_cache_${backend}` tests; the old WARP-only registration is gone, so there is no duplicate name. - New `dual-trace-disabled` mode runs the paired readback with the selector unset, `3x` and `4294967299`, and asserts no `x2w-mesh86-trace` rows. This matches the parser in `src/startup_stubs/mesh_xmem_handoff.inl:22-30` (non-digit returns 0; the value is 10 chars max, accumulated in u64), so the two bad values really are the prefix and truncation cases for ordinal 3. - The PR smoke preset regex now includes both WARP trace tests; the docs paragraph in docs/experiments.md matches the behavior. - No other open or merged PR covers this slice (#2504 added the trace itself and is merged). Commands run on Linux: - `python3 tests/docs_links_check.py` -> pass - `python3 tests/bidi_controls_check.py` -> pass - `git diff --check origin/main...HEAD` -> clean - `python3 -m py_compile tests/startup_indirect_mesh_cache_check.py` -> ok The fixture runs need Windows, so the real run is the Win2025 WARP receipt that follows. The hardware variant is registered but not run on the WARP-only VM. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 20:04:34 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Re-review of head dea92d6c. Comment review, no approval.

The head only adds a merge of main on top of the previously reviewed f226f017. The PR's own diff against main is unchanged (4 files: CMakeLists.txt, CMakePresets.json, docs/experiments.md, tests/startup_indirect_mesh_cache_check.py; same hunks as before). Findings from the earlier review still stand: the sibling test registration is consistent, the selector controls (3x, 4294967299, unset) match the parser in src/startup_stubs/mesh_xmem_handoff.inl, and the PR smoke preset covers both WARP trace tests.

Commands run on Linux for this head: git diff --stat origin/main...HEAD, python3 tests/docs_links_check.py, python3 tests/bidi_controls_check.py, git diff --check origin/main...HEAD (all clean). The Win2025 WARP dev+release receipt for this head is in the previous comment.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6064074770 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2513#pullrequestreview-6064074770). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T19:56:06Z. **Review:** COMMENTED --- Re-review of head dea92d6c. Comment review, no approval. The head only adds a merge of main on top of the previously reviewed f226f017. The PR's own diff against main is unchanged (4 files: CMakeLists.txt, CMakePresets.json, docs/experiments.md, tests/startup_indirect_mesh_cache_check.py; same hunks as before). Findings from the earlier review still stand: the sibling test registration is consistent, the selector controls (`3x`, `4294967299`, unset) match the parser in `src/startup_stubs/mesh_xmem_handoff.inl`, and the PR smoke preset covers both WARP trace tests. Commands run on Linux for this head: `git diff --stat origin/main...HEAD`, `python3 tests/docs_links_check.py`, `python3 tests/bidi_controls_check.py`, `git diff --check origin/main...HEAD` (all clean). The Win2025 WARP dev+release receipt for this head is in the previous comment. AI-assisted; commands listed were executed locally.
RonLogic commented 2026-11-25 20:04:46 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-25T19:46:50Z.


I reran the focused Windows Release checks after the main merge at dea92d6cc60cd41e1fbda01920c651b6dab32e16. 7/7 passed, no skips, on in-box WARP and RTX 4070. This covers the paired trace, disabled/malformed/overflow selector controls, and the newly merged loose-root cases on both adapters.

cmake --build --preset release --target startup_indirect_draw_indexed --parallel 4
ctest --preset release --no-tests=error -j 1 -R '^startup_indirect_mesh_lease_(warp|hardware)_(dual(-trace(-disabled)?)?|loose.*)$' --output-on-failure

Windows 11 26300.10075, WARP 10.0.26100.10068 and RTX 4070 driver 32.0.16.2124.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7172755997 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2513#issuecomment-7172755997). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-25T19:46:50Z. --- I reran the focused Windows Release checks after the main merge at `dea92d6cc60cd41e1fbda01920c651b6dab32e16`. **7/7 passed, no skips**, on in-box WARP and RTX 4070. This covers the paired trace, disabled/malformed/overflow selector controls, and the newly merged loose-root cases on both adapters. ```powershell cmake --build --preset release --target startup_indirect_draw_indexed --parallel 4 ctest --preset release --no-tests=error -j 1 -R '^startup_indirect_mesh_lease_(warp|hardware)_(dual(-trace(-disabled)?)?|loose.*)$' --output-on-failure ``` Windows 11 26300.10075, WARP 10.0.26100.10068 and RTX 4070 driver 32.0.16.2124.
tedin7 commented 2026-11-25 20:04:47 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T19:55:50Z.


Win2025 WARP receipt for head dea92d6c after updating with main.

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

  • Debug (--preset dev):
    • Build (cmake --build --preset dev -- -j 2): 194.56s (configure 2.30s)
    • Test (ctest --preset dev -R 'startup_indirect_mesh_lease_warp_dual(-trace(-disabled)?)?$|startup_indirect_mesh_cache_warp$' --parallel 4 --no-tests=error --output-on-failure): 4/4 passed (2.10s: startup_indirect_mesh_lease_warp_dual 1.13s, startup_indirect_mesh_cache_warp 1.64s, startup_indirect_mesh_lease_warp_dual-trace-disabled 1.69s, startup_indirect_mesh_lease_warp_dual-trace 1.94s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release -- -j 2): 372.31s (configure 2.45s)
    • Test (ctest --preset release -R 'startup_indirect_mesh_lease_warp_dual(-trace(-disabled)?)?$|startup_indirect_mesh_cache_warp$' --parallel 4 --no-tests=error --output-on-failure): 4/4 passed (2.14s: startup_indirect_mesh_lease_warp_dual 1.08s, startup_indirect_mesh_lease_warp_dual-trace-disabled 1.65s, startup_indirect_mesh_cache_warp 1.68s, startup_indirect_mesh_lease_warp_dual-trace 1.95s)
  • sccache: 112/449 hits; wall 581.2s

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7172956357 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2513#issuecomment-7172956357). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T19:55:50Z. --- Win2025 WARP receipt for head dea92d6c after updating with main. Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `dea92d6cc60cd41e1fbda01920c651b6dab32e16`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev -- -j 2`): `194.56s` (configure `2.30s`) - Test (`ctest --preset dev -R 'startup_indirect_mesh_lease_warp_dual(-trace(-disabled)?)?$|startup_indirect_mesh_cache_warp$' --parallel 4 --no-tests=error --output-on-failure`): **4/4 passed** (`2.10s`: `startup_indirect_mesh_lease_warp_dual` `1.13s`, `startup_indirect_mesh_cache_warp` `1.64s`, `startup_indirect_mesh_lease_warp_dual-trace-disabled` `1.69s`, `startup_indirect_mesh_lease_warp_dual-trace` `1.94s`) - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release -- -j 2`): `372.31s` (configure `2.45s`) - Test (`ctest --preset release -R 'startup_indirect_mesh_lease_warp_dual(-trace(-disabled)?)?$|startup_indirect_mesh_cache_warp$' --parallel 4 --no-tests=error --output-on-failure`): **4/4 passed** (`2.14s`: `startup_indirect_mesh_lease_warp_dual` `1.08s`, `startup_indirect_mesh_lease_warp_dual-trace-disabled` `1.65s`, `startup_indirect_mesh_cache_warp` `1.68s`, `startup_indirect_mesh_lease_warp_dual-trace` `1.95s`) - `sccache`: 112/449 hits; wall `581.2s` 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!2505
No description provided.