tests: accept adapter selection notices in compute readbacks #2325

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

@⁠RavenCurseBurg on GitHub · 2026-11-25 12:22 UTC · original
RavenCurseBurg:tests/compute-secondary-adapter → main · +9 −3 · 1 files · 1 commits · merged 2026-11-25 12:26 UTC

When I selected the desktop Intel UHD 770 with XBOX2WINDOWS_ADAPTER=Intel, the renderer successfully dispatched case A and matched all 320 words. The Python test failed because offscreen_check had printed XBOX2WINDOWS_ADAPTER: skipping NVIDIA GeForce RTX 4060 to stderr. This line also precedes the first word mismatch in the MBCNT negative controls.

The hardware fixture now prints those selection messages and checks the remaining diagnostics. Other stderr from a successful dispatch still fails, and the pinned negative controls still check the first mismatch.

Tested with the actual secondary adapter (Intel UHD 770, 32.0.101.5973, Windows 26100.9711). All six positive cases matched 320/320. The six MBCNT controls and the four other compute mutations failed on their expected readbacks. An injected extra diagnostic after the adapter notice still failed the positive fixture. git diff --check passed.

Agent environment: Codex + GPT-6.2 Astra xhigh.

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 12:22 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2325) `RavenCurseBurg:tests/compute-secondary-adapter` → `main` · +9 −3 · 1 files · 1 commits · merged 2026-11-25 12:26 UTC When I selected the desktop Intel UHD 770 with `XBOX2WINDOWS_ADAPTER=Intel`, the renderer successfully dispatched case A and matched all 320 words. The Python test failed because offscreen_check had printed `XBOX2WINDOWS_ADAPTER: skipping NVIDIA GeForce RTX 4060` to stderr. This line also precedes the first word mismatch in the MBCNT negative controls. The hardware fixture now prints those selection messages and checks the remaining diagnostics. Other stderr from a successful dispatch still fails, and the pinned negative controls still check the first mismatch. Tested with the actual secondary adapter (Intel UHD 770, 32.0.101.5973, Windows 26100.9711). All six positive cases matched 320/320. The six MBCNT controls and the four other compute mutations failed on their expected readbacks. An injected extra diagnostic after the adapter notice still failed the positive fixture. `git diff --check` passed. Agent environment: Codex + GPT-6.2 Astra xhigh.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:16:13 +00:00
github manually merged commit 71c44ea6ce into gh-pr/2325/base 2026-11-27 00:16:15 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-25 12:23 UTC · original · reviewed

Review of head 71c44ea6cef1ef6f5a9c2baa102e894f81d6afae (only tests/startup_gfx2hlsl_compute_check.py).

Result: 0 P1, 0 P2.

What the change does: in dispatch mode, XBOX2WINDOWS_ADAPTER: skipping ... stderr notices (printed by the runner, see tests/offscreen_check.cpp) no longer count as failures, but only for the hardware adapter. They are forwarded to stderr. Any other stderr line still fails the case. The mismatch control now looks for expected= and the first diagnostic line over the filtered lines, so a notice cannot hide the mismatch line.

Checks run locally:

  • python3 tests/docs_links_check.py: pass
  • python3 tests/bidi_controls_check.py: pass
  • git diff --check origin/main...HEAD: clean
  • python3 -m py_compile tests/startup_gfx2hlsl_compute_check.py: ok
  • Stub dxc/runner emitting only the adapter notice: dispatch ... hardware passes all cases; dispatch ... warp still fails with AssertionError: case A: XBOX2WINDOWS_ADAPTER: skipping ....
  • Mutation: dropped the adapter == 'hardware' condition in the filter. The hardware run then fails (AssertionError, case A). Reverted with git checkout -- ..

Clean-room: test-harness only, no ISA or vendor content. No concurrent open PR touches this file.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-25 12:23 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2325#pullrequestreview-6057536984) · **reviewed** Review of head `71c44ea6cef1ef6f5a9c2baa102e894f81d6afae` (only `tests/startup_gfx2hlsl_compute_check.py`). Result: 0 P1, 0 P2. What the change does: in `dispatch` mode, `XBOX2WINDOWS_ADAPTER: skipping ...` stderr notices (printed by the runner, see `tests/offscreen_check.cpp`) no longer count as failures, but only for the `hardware` adapter. They are forwarded to stderr. Any other stderr line still fails the case. The mismatch control now looks for `expected=` and the first diagnostic line over the filtered lines, so a notice cannot hide the mismatch line. Checks run locally: - `python3 tests/docs_links_check.py`: pass - `python3 tests/bidi_controls_check.py`: pass - `git diff --check origin/main...HEAD`: clean - `python3 -m py_compile tests/startup_gfx2hlsl_compute_check.py`: ok - Stub dxc/runner emitting only the adapter notice: `dispatch ... hardware` passes all cases; `dispatch ... warp` still fails with `AssertionError: case A: XBOX2WINDOWS_ADAPTER: skipping ...`. - Mutation: dropped the `adapter == 'hardware'` condition in the filter. The `hardware` run then fails (AssertionError, case A). Reverted with `git checkout -- .`. Clean-room: test-harness only, no ISA or vendor content. No concurrent open PR touches this file. AI-assisted; commands listed were executed locally.
This discussion has been locked. Commenting is limited to contributors.
No description provided.