tests: accept hardware adapter selection notices in compute readfirstlane #2685

Merged
RavenCurseBurg merged 1 commit from upstream-pr/2693 into main 2026-11-26 02:39:23 +00:00
RavenCurseBurg commented 2026-11-26 02:12:08 +00:00 (Migrated from github.com)

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


Change

On a Windows 11 machine with an RTX 4060 and Intel UHD 770, XBOX2WINDOWS_ADAPTER=Intel selects the Intel device and logs the skipped NVIDIA adapter to stderr. I reproduced a failure in startup_compute_readfirstlane_hardware on f06646ba: the renderer returned 0 with compared_words=320 mismatches=0, then the Python fixture failed the baseline on the adapter notice. The same notice also precedes the first wrong word in each mutation run.

The readfirstlane fixture now echoes the hardware selector's XBOX2WINDOWS_ADAPTER: skipping lines and checks the remaining diagnostics, following startup_gfx2hlsl_compute_check.py. A regular renderer error still fails the baseline. Each mutation still requires exit 1 and its specific first wrong word.

Verification

At fa691dd6, I ran the normal dispatch entry point on Intel UHD 770, RTX 4060 and WARP. All three baseline readbacks matched 320 words. On each backend the three controls first mismatched at word 0, with actual values 00000019, 0000007f and 00000087 against expected 0000008b. The selected Intel run echoed the four skipped-adapter notices.

$env:XBOX2WINDOWS_ADAPTER = 'Intel'
python -B tests/startup_compute_readfirstlane_check.py --dispatch $dxc $renderer hardware

I also injected renderer results through dispatch: hardware notice only passed; a notice followed by a real diagnostic, an unexpected nonzero exit, the wrong mutation word, noise ahead of the mutation word, and the hardware-only notice on WARP each failed. Device-unavailable exit 77 still skipped.

Discovered while verifying #2644. AI-assisted contribution using Codex (GPT-6.2 Astra, xhigh).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6617979957 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2693). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-26T02:12:08Z. --- ## Change On a Windows 11 machine with an RTX 4060 and Intel UHD 770, `XBOX2WINDOWS_ADAPTER=Intel` selects the Intel device and logs the skipped NVIDIA adapter to stderr. I reproduced a failure in `startup_compute_readfirstlane_hardware` on `f06646ba`: the renderer returned 0 with `compared_words=320 mismatches=0`, then the Python fixture failed the baseline on the adapter notice. The same notice also precedes the first wrong word in each mutation run. The readfirstlane fixture now echoes the hardware selector's `XBOX2WINDOWS_ADAPTER: skipping ` lines and checks the remaining diagnostics, following `startup_gfx2hlsl_compute_check.py`. A regular renderer error still fails the baseline. Each mutation still requires exit 1 and its specific first wrong word. ## Verification At `fa691dd6`, I ran the normal dispatch entry point on Intel UHD 770, RTX 4060 and WARP. All three baseline readbacks matched 320 words. On each backend the three controls first mismatched at word 0, with actual values `00000019`, `0000007f` and `00000087` against expected `0000008b`. The selected Intel run echoed the four skipped-adapter notices. ```powershell $env:XBOX2WINDOWS_ADAPTER = 'Intel' python -B tests/startup_compute_readfirstlane_check.py --dispatch $dxc $renderer hardware ``` I also injected renderer results through `dispatch`: hardware notice only passed; a notice followed by a real diagnostic, an unexpected nonzero exit, the wrong mutation word, noise ahead of the mutation word, and the hardware-only notice on WARP each failed. Device-unavailable exit 77 still skipped. Discovered while verifying [#2644](https://github.com/R0Y00/Xbox2Windows/issues/2644). AI-assisted contribution using Codex (GPT-6.2 Astra, xhigh).
upstream-sync closed this pull request 2026-11-26 03:03:13 +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!2685
No description provided.