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

Merged
R0Y00 merged 1 commit from upstream-pr/2743 into main 2026-11-26 05:13:53 +00:00
R0Y00 commented 2026-11-26 05:08:11 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T05:08:11Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6619954933 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2743). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T05:08:11Z. --- 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.
tedin7 commented 2026-11-26 05:11:27 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T05:11:27Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6068862490 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2743#pullrequestreview-6068862490). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T05:11:27Z. **Review:** COMMENTED --- 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.
upstream-sync closed this pull request 2026-11-26 06:02:01 +00:00
tedin7 commented 2026-11-26 06:02:06 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T05:13:45Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7183296382 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2743#issuecomment-7183296382). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T05:13:45Z. --- 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.
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!2735
No description provided.