Test each console root-signature bit separately #139

Merged
yummancito merged 2 commits from upstream-pr/140 into main 2026-11-21 17:45:03 +00:00
yummancito commented 2026-11-21 16:57:53 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by yummancito on 2026-11-21T16:57:53Z.


desktop_bvh_root_flags asserts only the 0x03000000 pair, so a driver that started accepting one of the two console bits alone would still leave CI green.

The per-bit result is already in docs/experiments.md, but it comes from probe_root_devices.py run against a local call inventory. The regression suite has no equivalent: the two source-built controls used by root_device_controls_warp carry flags 0, and root_device_probe skips any clear value that is not set in the original, so they never exercise the single-bit case.

This change checks 0x01000000, 0x02000000 and the pair with a synthetic v1.1 descriptor and prints one field per case. Exit semantics are unchanged: the test passes only if the baseline serializes and all three cases return E_INVALIDARG with no blob produced. One paragraph in docs/experiments.md points at the test.

Verified at 47e990b on Windows 11 build 26300.9974, VS Build Tools 2022 (MSVC 19.44.35228, CMake 3.31.6, Ninja 1.12.1), SDK 10.0.26100, RTX 5060 (driver 621.14, DXGI 32.0.16.2114) and WARP 10.0.26100.9818:

v1.1 control=0x00000000 flags_01000000=0x80070057 flags_02000000=0x80070057 flags_03000000=0x80070057

ctest --preset dev -V -R '^desktop_bvh_root_flags$'
1/1 Test #2: desktop_bvh_root_flags ...........   Passed    0.04 sec

ctest --preset dev --no-tests=error -R 'desktop_root_signature|era_heap_allocation|offscreen_warp|_hardware$|_warp$'
100% tests passed, 0 tests failed out of 42

bvh_wave64_hardware and bvh_wave64_warp skip by capability on this host (native lane ranges 32..32 and 4..4) and are reported separately. The D3D12 debug layer was not available for this run.

No new fixture, no dependency and no change to CMakeLists.txt; the existing baseline signature with flags cleared remains the negative control.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6531763999 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/140). Originally posted by [yummancito](https://github.com/yummancito) on 2026-11-21T16:57:53Z. --- `desktop_bvh_root_flags` asserts only the `0x03000000` pair, so a driver that started accepting one of the two console bits alone would still leave CI green. The per-bit result is already in `docs/experiments.md`, but it comes from `probe_root_devices.py` run against a local call inventory. The regression suite has no equivalent: the two source-built controls used by `root_device_controls_warp` carry flags 0, and `root_device_probe` skips any clear value that is not set in the original, so they never exercise the single-bit case. This change checks `0x01000000`, `0x02000000` and the pair with a synthetic v1.1 descriptor and prints one field per case. Exit semantics are unchanged: the test passes only if the baseline serializes and all three cases return `E_INVALIDARG` with no blob produced. One paragraph in `docs/experiments.md` points at the test. Verified at `47e990b` on Windows 11 build 26300.9974, VS Build Tools 2022 (MSVC 19.44.35228, CMake 3.31.6, Ninja 1.12.1), SDK 10.0.26100, RTX 5060 (driver 621.14, DXGI 32.0.16.2114) and WARP 10.0.26100.9818: ``` v1.1 control=0x00000000 flags_01000000=0x80070057 flags_02000000=0x80070057 flags_03000000=0x80070057 ctest --preset dev -V -R '^desktop_bvh_root_flags$' 1/1 Test #2: desktop_bvh_root_flags ........... Passed 0.04 sec ctest --preset dev --no-tests=error -R 'desktop_root_signature|era_heap_allocation|offscreen_warp|_hardware$|_warp$' 100% tests passed, 0 tests failed out of 42 ``` `bvh_wave64_hardware` and `bvh_wave64_warp` skip by capability on this host (native lane ranges 32..32 and 4..4) and are reported separately. The D3D12 debug layer was not available for this run. No new fixture, no dependency and no change to `CMakeLists.txt`; the existing baseline signature with flags cleared remains the negative control.
upstream-sync closed this pull request 2026-11-24 06:41:30 +00:00
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!139
No description provided.