tests: distinguish two copied raw vertex SRVs in one table #2743

Manually merged
github merged 1 commit from gh-pr/2743/head into gh-pr/2743/base 2026-11-27 01:19:36 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-26 05:08 UTC · original
R0Y00:codex/vertex-table-two-records → main · +98 −6 · 6 files · 1 commits · merged 2026-11-26 05:13 UTC

Refs #2695.

The copied vertex-SRV fixture now binds two independent raw buffers at once. It compares both guest-visible descriptor records after each copy, then reads byte 288 through both bindings in the vertex shader. Swapping and restoring the records swaps and restores the two output channels. The control changes only the second manifest offset to match the first. Both guest records still hold distinct bytes, and the control duplicates the first channel in all 32 pixels. The existing full/short/restored check still runs separately.

Windows x64 Release, in-box WARP 10.0.26100.9818 and RTX 4060 Laptop (32.0.16.1656), fixture debug layer off. Windows build and candidate SHA are recorded below. The combined diagnostic run had 4/4 passes and zero skips, including the existing joined-table reader. The two copied-vertex tests passed again after the final fixture edit.

cmake --build --preset release --target startup_stream_consumer
ctest --preset release --no-tests=error -j 1 -R '^startup_(copied_vertex_srv|joined_table_pointer_fxc)_(warp|hardware)$' -V
python -B tests/docs_links_check.py

This is a source-built check of table records and vertex-stage addressing. The executable's writer is still under investigation.

Tested commit 6a89734ab4. Windows 26200.9974.

**@⁠R0Y00** on GitHub · 2026-11-26 05:08 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2743) `R0Y00:codex/vertex-table-two-records` → `main` · +98 −6 · 6 files · 1 commits · merged 2026-11-26 05:13 UTC Refs #2695. The copied vertex-SRV fixture now binds two independent raw buffers at once. It compares both guest-visible descriptor records after each copy, then reads byte 288 through both bindings in the vertex shader. Swapping and restoring the records swaps and restores the two output channels. The control changes only the second manifest offset to match the first. Both guest records still hold distinct bytes, and the control duplicates the first channel in all 32 pixels. The existing full/short/restored check still runs separately. Windows x64 Release, in-box WARP 10.0.26100.9818 and RTX 4060 Laptop (32.0.16.1656), fixture debug layer off. Windows build and candidate SHA are recorded below. The combined diagnostic run had 4/4 passes and zero skips, including the existing joined-table reader. The two copied-vertex tests passed again after the final fixture edit. ```powershell cmake --build --preset release --target startup_stream_consumer ctest --preset release --no-tests=error -j 1 -R '^startup_(copied_vertex_srv|joined_table_pointer_fxc)_(warp|hardware)$' -V python -B tests/docs_links_check.py ``` This is a source-built check of table records and vertex-stage addressing. The executable's writer is still under investigation. Tested commit 6a89734ab49757f88655c6c6eb29942a52012dee. Windows 26200.9974.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:19:35 +00:00
github manually merged commit 6a89734ab4 into gh-pr/2743/base 2026-11-27 01:19:36 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-26 05:11 UTC · original · reviewed

Review of head 6a89734a (comment review, no approval).

What I checked:

  • The new fixture draw_copied_vertex_srv_pair binds two raw buffers with distinct bytes at offset 288 (181 and 211) and compares both guest-visible records after each copy.
  • The Python check reads both bindings in the vertex stage and expects a swap and restore across the three strips. The control changes only the second manifest offset, so it must collapse to one channel (expected bytes differ per case).
  • The existing full/short/restored check is untouched and still runs separately.
  • Sibling callsites: the new env switch is added in the consumer, draw and setup files next to the existing X2W_TEST_COPIED_VERTEX_SRV branch. Nothing is left out that I could find.
  • No other open or merged PR covers this slice (searched copied vertex SRV).
  • Scope is test-only plus one docs note. It does not claim startup progress.

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_copied_vertex_srv_check.py -> ok

The runtime behavior needs the Windows run, which I am starting now.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-26 05:11 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2743#pullrequestreview-6068862490) · **reviewed** Review of head 6a89734a (comment review, no approval). What I checked: - The new fixture `draw_copied_vertex_srv_pair` binds two raw buffers with distinct bytes at offset 288 (181 and 211) and compares both guest-visible records after each copy. - The Python check reads both bindings in the vertex stage and expects a swap and restore across the three strips. The control changes only the second manifest offset, so it must collapse to one channel (expected bytes differ per case). - The existing full/short/restored check is untouched and still runs separately. - Sibling callsites: the new env switch is added in the consumer, draw and setup files next to the existing `X2W_TEST_COPIED_VERTEX_SRV` branch. Nothing is left out that I could find. - No other open or merged PR covers this slice (searched copied vertex SRV). - Scope is test-only plus one docs note. It does not claim startup progress. 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_copied_vertex_srv_check.py` -> ok The runtime behavior needs the Windows run, which I am starting now. AI-assisted; commands listed were executed locally.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-26 05:13 UTC · original

Win2025 WARP receipt for head 6a89734a.

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

  • Debug (--preset dev):
    • Build (cmake --build --preset dev --target startup_stream_consumer -- -j 2): 28.78s (configure 1.91s)
    • Test (ctest --preset dev -R '^startup_(copied_vertex_srv|joined_table_pointer_fxc)_(warp|hardware)$' --parallel 6 --no-tests=error --output-on-failure): 4/4 passed (8.33s: startup_copied_vertex_srv_hardware 4.43s, startup_copied_vertex_srv_warp 4.74s, startup_joined_table_pointer_fxc_hardware 7.88s, startup_joined_table_pointer_fxc_warp 8.03s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release --target startup_stream_consumer -- -j 2): 45.90s (configure 2.87s)
    • Test (ctest --preset release -R '^startup_(copied_vertex_srv|joined_table_pointer_fxc)_(warp|hardware)$' --parallel 6 --no-tests=error --output-on-failure): 4/4 passed (5.52s: startup_copied_vertex_srv_warp 3.05s, startup_copied_vertex_srv_hardware 3.04s, startup_joined_table_pointer_fxc_hardware 5.29s, startup_joined_table_pointer_fxc_warp 5.33s)
  • Windows Python checks: tests/docs_links_check.py ok (1.3s)
  • sccache: 0/12 hits; wall 95.6s

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-26 05:13 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2743#issuecomment-7183296382) Win2025 WARP receipt for head 6a89734a. Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `6a89734ab49757f88655c6c6eb29942a52012dee`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev --target startup_stream_consumer -- -j 2`): `28.78s` (configure `1.91s`) - Test (`ctest --preset dev -R '^startup_(copied_vertex_srv|joined_table_pointer_fxc)_(warp|hardware)$' --parallel 6 --no-tests=error --output-on-failure`): **4/4 passed** (`8.33s`: `startup_copied_vertex_srv_hardware` `4.43s`, `startup_copied_vertex_srv_warp` `4.74s`, `startup_joined_table_pointer_fxc_hardware` `7.88s`, `startup_joined_table_pointer_fxc_warp` `8.03s`) - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release --target startup_stream_consumer -- -j 2`): `45.90s` (configure `2.87s`) - Test (`ctest --preset release -R '^startup_(copied_vertex_srv|joined_table_pointer_fxc)_(warp|hardware)$' --parallel 6 --no-tests=error --output-on-failure`): **4/4 passed** (`5.52s`: `startup_copied_vertex_srv_warp` `3.05s`, `startup_copied_vertex_srv_hardware` `3.04s`, `startup_joined_table_pointer_fxc_hardware` `5.29s`, `startup_joined_table_pointer_fxc_warp` `5.33s`) - **Windows Python checks**: `tests/docs_links_check.py` ok (`1.3s`) - `sccache`: 0/12 hits; wall `95.6s` AI-assisted; commands listed were executed locally.
This discussion has been locked. Commenting is limited to contributors.
No description provided.