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

Manually merged
github merged 1 commit from gh-pr/2693/head into gh-pr/2693/base 2026-11-27 01:15:30 +00:00
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-26 02:12 UTC · original
RavenCurseBurg:tests/readfirstlane-adapter-selection-notices → main · +8 −2 · 1 files · 1 commits · merged 2026-11-26 02:39 UTC

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).

**@⁠RavenCurseBurg** on GitHub · 2026-11-26 02:12 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2693) `RavenCurseBurg:tests/readfirstlane-adapter-selection-notices` → `main` · +8 −2 · 1 files · 1 commits · merged 2026-11-26 02:39 UTC ## 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://git.gtahub.st/github/R0Y00--Xbox2Windows/issues/2644). AI-assisted contribution using Codex (GPT-6.2 Astra, xhigh).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:15:28 +00:00
github manually merged commit fa691dd6d9 into gh-pr/2693/base 2026-11-27 01:15:30 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.