tests: startup stream hardware runs ignore XBOX2WINDOWS_ADAPTER and can report success on the wrong GPU #2408

Closed
opened 2026-11-25 16:05:11 +00:00 by RavenCurseBurg · 0 comments
RavenCurseBurg commented 2026-11-25 16:05:11 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T16:05:11Z.


On a Windows machine with both an Intel UHD Graphics 770 and an NVIDIA GeForce RTX 4060, the startup stream rasterizer test returns success on the RTX even when the hardware run explicitly requests Intel. It also succeeds for a name that matches no adapter. This can misattribute hardware verification like the readbacks for #1999.

I reproduced the following with the source-built fixture from #2387 (45f42d76). The same hardware enumeration is in current main 7092683a.

$env:XBOX2WINDOWS_ADAPTER = 'Intel'
ctest --preset dev --no-tests=error -V -R '^startup_stream_rasterizer_hardware$'
$env:XBOX2WINDOWS_ADAPTER = 'no-such-adapter-768'
ctest --preset dev --no-tests=error -V -R '^startup_stream_rasterizer_hardware$'

Both driver invocations exited 0, printed adapter=NVIDIA GeForce RTX 4060 vendor=10de device=2882 driver=32.0.15.9579, and matched all eight cull/winding images. On the same machine the offscreen fixtures select the UHD 770 for the Intel filter.

The stream support code and the four dedicated draw-depth, slot-57 depth, stream-depth and stream-rasterizer fixtures independently select the first qualifying hardware adapter in high-performance order. I’ll take a test-only fix for those paths, including case-insensitive substrings, an unmatched explicit name, an unset filter, and WARP while a hardware filter is present. I’ll check the actual adapters and readbacks on this dual-GPU machine.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6608539823 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2416). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T16:05:11Z. --- On a Windows machine with both an Intel UHD Graphics 770 and an NVIDIA GeForce RTX 4060, the startup stream rasterizer test returns success on the RTX even when the hardware run explicitly requests Intel. It also succeeds for a name that matches no adapter. This can misattribute hardware verification like the readbacks for #1999. I reproduced the following with the source-built fixture from #2387 (`45f42d76`). The same hardware enumeration is in current main `7092683a`. ```powershell $env:XBOX2WINDOWS_ADAPTER = 'Intel' ctest --preset dev --no-tests=error -V -R '^startup_stream_rasterizer_hardware$' $env:XBOX2WINDOWS_ADAPTER = 'no-such-adapter-768' ctest --preset dev --no-tests=error -V -R '^startup_stream_rasterizer_hardware$' ``` Both driver invocations exited 0, printed `adapter=NVIDIA GeForce RTX 4060 vendor=10de device=2882 driver=32.0.15.9579`, and matched all eight cull/winding images. On the same machine the offscreen fixtures select the UHD 770 for the Intel filter. The stream support code and the four dedicated draw-depth, slot-57 depth, stream-depth and stream-rasterizer fixtures independently select the first qualifying hardware adapter in high-performance order. I’ll take a test-only fix for those paths, including case-insensitive substrings, an unmatched explicit name, an unset filter, and WARP while a hardware filter is present. I’ll check the actual adapters and readbacks on this dual-GPU machine.
Sign in to join this conversation.
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#2408
No description provided.