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

Manually merged
github merged 2 commits from gh-pr/2513/head into gh-pr/2513/base 2026-11-27 00:58:16 +00:00
Owner

@⁠RonLogic on GitHub · 2026-11-25 19:21 UTC · original
RonLogic:test/mesh86-trace-adapter-controls → main · +35 −5 · 4 files · 2 commits · merged 2026-11-25 19:56 UTC

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.

**@⁠RonLogic** on GitHub · 2026-11-25 19:21 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2513) `RonLogic:test/mesh86-trace-adapter-controls` → `main` · +35 −5 · 4 files · 2 commits · merged 2026-11-25 19:56 UTC ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:58:14 +00:00
github manually merged commit dea92d6cc6 into gh-pr/2513/base 2026-11-27 00:58:16 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-25 19:42 UTC · original · reviewed

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** on GitHub · 2026-11-25 19:42 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2513#pullrequestreview-6063904042) · **reviewed** 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.
Author
Owner

@⁠RonLogic on GitHub · 2026-11-25 19:46 UTC · original

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.

**@⁠RonLogic** on GitHub · 2026-11-25 19:46 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2513#issuecomment-7172755997) 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.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-25 19:55 UTC · original

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.

**@⁠tedin7** on GitHub · 2026-11-25 19:55 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2513#issuecomment-7172956357) 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.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-25 19:56 UTC · original · reviewed

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.

**@⁠tedin7** on GitHub · 2026-11-25 19:56 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2513#pullrequestreview-6064074770) · **reviewed** 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.