Exercise a graphics pipeline stream with a root SRV and flat-color readback #1092

Merged
R0Y00 merged 2 commits from upstream-pr/1099 into main 2026-11-24 12:11:18 +00:00
R0Y00 commented 2026-11-24 01:00:33 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T01:00:33Z.


Refs #870 and #874.

This source-built fixture creates a VS/PS pipeline stream and binds its vertex data through a root SRV at t0, space3. The vertex shader fetches positions and distinct vertex colors using SV_VertexID. For each submitted draw it waits on a fence and compares every byte of the 8×8 RGBA target. The baseline is solid green, a zero stride leaves the magenta clear color, and a wrong root address produces solid red.

Tested 7ccdb7a4 on Windows build 26200, RTX 4060 Laptop (32.0.16.1656) and WARP (10.0.26100.9818), debug layer enabled. Both tests passed. All six draws had zero pixel mismatches, zero debug errors and zero warnings.

cmake --build --preset release --target offscreen_check
ctest --preset release --no-tests=error -R '^stream_root_srv_' -V
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6572173524 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1099). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T01:00:33Z. --- Refs #870 and #874. This source-built fixture creates a VS/PS pipeline stream and binds its vertex data through a root SRV at `t0, space3`. The vertex shader fetches positions and distinct vertex colors using `SV_VertexID`. For each submitted draw it waits on a fence and compares every byte of the 8×8 RGBA target. The baseline is solid green, a zero stride leaves the magenta clear color, and a wrong root address produces solid red. Tested 7ccdb7a4 on Windows build 26200, RTX 4060 Laptop (32.0.16.1656) and WARP (10.0.26100.9818), debug layer enabled. Both tests passed. All six draws had zero pixel mismatches, zero debug errors and zero warnings. ```powershell cmake --build --preset release --target offscreen_check ctest --preset release --no-tests=error -R '^stream_root_srv_' -V ```
tedin7 commented 2026-11-24 02:27:08 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed commit 7ccdb7a47182cdb51c9629519a692b6ba498259c on Linux.

Code notes:

  • tests/stream_root_srv.hlsl and tests/stream_root_srv.cpp: clean D3D12_PIPELINE_STATE_STREAM_DESC setup with alignas(void*) subobject fields, root SRV at t0, space3, flat-shaded nointerpolation color, and three distinct scenarios (baseline green, wrong_stride magenta clear, wrong_binding red) verified byte-for-byte after queue fence wait.
  • CMakeLists.txt, tests/offscreen_check.cpp, tests/desktop_gpu.h, and docs/experiments.md: cleanly integrated with SKIP_RETURN_CODE 77.

Linux checks passed: python3 tests/docs_links_check.py, python3 tests/bidi_controls_check.py, python3 tests/gpu_report_format_check.py, python3 tests/xgameruntime_table_check.py, python3 tests/hardware_reports_check.py.
Windows MSVC/DXC build, WARP, and hardware CI checks all passed (4/4 successful, 1 skipped).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6032753694 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1099#pullrequestreview-6032753694). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T02:27:08Z. **Review:** COMMENTED --- Reviewed commit `7ccdb7a47182cdb51c9629519a692b6ba498259c` on Linux. Code notes: - `tests/stream_root_srv.hlsl` and `tests/stream_root_srv.cpp`: clean `D3D12_PIPELINE_STATE_STREAM_DESC` setup with `alignas(void*)` subobject fields, root SRV at `t0, space3`, flat-shaded `nointerpolation` color, and three distinct scenarios (`baseline` green, `wrong_stride` magenta clear, `wrong_binding` red) verified byte-for-byte after queue fence wait. - `CMakeLists.txt`, `tests/offscreen_check.cpp`, `tests/desktop_gpu.h`, and `docs/experiments.md`: cleanly integrated with `SKIP_RETURN_CODE 77`. Linux checks passed: `python3 tests/docs_links_check.py`, `python3 tests/bidi_controls_check.py`, `python3 tests/gpu_report_format_check.py`, `python3 tests/xgameruntime_table_check.py`, `python3 tests/hardware_reports_check.py`. Windows MSVC/DXC build, WARP, and hardware CI checks all passed (4/4 successful, 1 skipped).
Toons29 commented 2026-11-24 06:50:06 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Toons29 on 2026-11-24T02:02:49Z.


Tested 7ccdb7a4 on an AMD Radeon RX 9070 (RDNA 4, 1002:7550), driver 32.0.32029.2010, Windows 11 build 26300, dev preset, debug layer unavailable: pass

ctest --preset dev --no-tests=error -R '^stream_root_srv_' -V

stream_root_srv_hardware and stream_root_srv_warp pass, with no skips. Both adapters report mismatches=0 over 64 pixels for all three cases: offset 0 stride 24, offset 0 stride 0, and offset 256 stride 24.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119701533 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1099#issuecomment-7119701533). Originally posted by [Toons29](https://github.com/Toons29) on 2026-11-24T02:02:49Z. --- Tested 7ccdb7a4 on an AMD Radeon RX 9070 (RDNA 4, `1002:7550`), driver `32.0.32029.2010`, Windows 11 build 26300, `dev` preset, debug layer unavailable: pass ```powershell ctest --preset dev --no-tests=error -R '^stream_root_srv_' -V ``` `stream_root_srv_hardware` and `stream_root_srv_warp` pass, with no skips. Both adapters report `mismatches=0` over 64 pixels for all three cases: offset 0 stride 24, offset 0 stride 0, and offset 256 stride 24.
upstream-sync closed this pull request 2026-11-24 13:00:18 +00:00
R0Y00 commented 2026-11-24 13:00:51 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T12:06:44Z.


Resolved the documentation overlap on 1df9604dda and kept both experiment entries. Windows Release passed stream_root_srv and startup_queue_wait on RTX 4060 Laptop and WARP (4/4, no skips), including the flat green draw, zero-stride clear and shifted-root red draw. The earlier independent RX 9070 result remains in this thread.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7130981371 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1099#issuecomment-7130981371). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T12:06:44Z. --- Resolved the documentation overlap on 1df9604ddaba265cbe9da9b3b1513d5693fa3946 and kept both experiment entries. Windows Release passed stream_root_srv and startup_queue_wait on RTX 4060 Laptop and WARP (4/4, no skips), including the flat green draw, zero-stride clear and shifted-root red draw. The earlier independent RX 9070 result remains in this thread.
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!1092
No description provided.