tests: accept adapter selection notices in compute readbacks #2325
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2325
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2325/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCWhen 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 printedXBOX2WINDOWS_ADAPTER: skipping NVIDIA GeForce RTX 4060to 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 --checkpassed.Agent environment: Codex + GPT-6.2 Astra xhigh.
@tedin7 on GitHub · 2026-11-25 12:23 UTC · original · reviewed
Review of head
71c44ea6cef1ef6f5a9c2baa102e894f81d6afae(onlytests/startup_gfx2hlsl_compute_check.py).Result: 0 P1, 0 P2.
What the change does: in
dispatchmode,XBOX2WINDOWS_ADAPTER: skipping ...stderr notices (printed by the runner, seetests/offscreen_check.cpp) no longer count as failures, but only for thehardwareadapter. They are forwarded to stderr. Any other stderr line still fails the case. The mismatch control now looks forexpected=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: passpython3 tests/bidi_controls_check.py: passgit diff --check origin/main...HEAD: cleanpython3 -m py_compile tests/startup_gfx2hlsl_compute_check.py: okdispatch ... hardwarepasses all cases;dispatch ... warpstill fails withAssertionError: case A: XBOX2WINDOWS_ADAPTER: skipping ....adapter == 'hardware'condition in the filter. Thehardwarerun then fails (AssertionError, case A). Reverted withgit 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.