shader: accept an unavailable debug layer in the attr0.z/w sampled draw #1957
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1964"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by alvaroolt on 2026-11-24T22:13:59Z.
Change
Follow-up to #1912.
pixel_aot_attribute_sampled_hardwareandpixel_aot_attribute_sampled_warprequire the linedebug_errors=0 debug_warnings=0from every renderer run.offscreen_checkprints those counts only when the D3D12 debug layer is enabled. Without the layer (Graphics Tools not installed) it printsdebug_layer=unavailableand no counts, so both tests fail at the first draw on such a host even though the draw matches the reference exactly. The Windows CI job runs withdebug_layer=enabled, so CI does not hit this.tests/pixel_attribute_sampled_check.pynow checks the debug layer throughdebug_status():The per-draw line prints the status that was checked instead of always printing
debug_errors=0 debug_warnings=0. This is the ruletests/pixel_cb_read_check.pyalready applies. The translator, the programs, the reference and the swapped-z/w controls are unchanged. One file changes.Verification
Windows 11 build 26300.9974, D3D12 debug layer unavailable (Graphics Tools not installed), MSVC 19.52, DXC from SDK 10.0.26100.0. Adapters: NVIDIA GeForce RTX 5080 (driver 32.0.16.2124), AMD Radeon(TM) Graphics iGPU (driver 32.0.11034.2, selected with
XBOX2WINDOWS_ADAPTER=Radeon) and WARP (10.0.26100.9818).Before the change (upstream
6d0a788), the same failure on all three adapters:After the change, GPU tests run serially. The two focused tests ran on the PR head, commit
d28732bonmain11f11e8. The^pixel_group and the Python checks ran on the same commit one rebase earlier (320aa11on82f0db6), and the commits in between don't change this file ortests/offscreen_check.cpp:The Python check list of the platform-independent CI job (69 files, through
tools/run_checks_parallel.py) exits 0.Full suites, on
6d0a788, three rebases earlier. The commits since then don't change this file:The 27 skips are the same capability skips in both configurations, and none is a
pixel_aot_attribute_sampled_*test. The one failure isrdna2_tools_checkin both configurations, caused by my shell environment: it hadLLVM_LIBset withoutLLVM_MC/LLVM_OBJCOPY, and in that case the test fails by design. With none of the three set, and with all three pointing at LLVM 15, it passes indevandrelease.I could not run the draw with the debug layer enabled on this machine. That path keeps the previous requirement, and the pins below cover it without a device.
Negative controls
draw()pinsdebug_status()on six synthetic outputs before any device work: clean counts, unavailable layer, one error, two warnings, enabled without counts, no layer marker.AssertionError: debug_status('backend=warp debug_layer=enabled\ndebug_errors=1 debug_warnings=0\n') is not None.AssertionError: debug_status('backend=warp\n') is not None.Evidence and follow-up
No new fixture or input; the test keeps its source-built programs and its Fraction reference. No README or docs change: the reproduction command in
docs/experiments.mdis unchanged.This change was AI-assisted (Claude Code); I reviewed the diff and the test results.
Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T22:40:58Z.
Review: COMMENTED
Review of head
d28732b66d790be8314ccaba1af4622f7f357eaa(test-only change totests/pixel_attribute_sampled_check.py, no CMake changes, clean-room).The check now accepts
debug_layer=unavailable(no counts) and still requires zero error and warning counts when the layer is enabled. The new in-test table covers the enabled/unavailable/missing cases.Commands executed:
python3 -I tests/pixel_attribute_sampled_check.py(Linux): PASSpython3 tests/docs_links_check.py: PASS (18 files, 386 links)python3 tests/bidi_controls_check.py: PASSgit diff --check origin/main...HEAD: PASSgit merge-tree --write-tree --name-only origin/main HEAD: no conflictspython3 x2w_pipe.py win2025 1964 --wait 900(Win2025, WARP): Debugpixel_aot_attribute_sampled_warp1/1 passed; Release /O2 1/1 passedMutations (applied as a patch on Win2025, Debug):
debug_errors=text instead of exactly zero counts. The test fails withAssertionError: debug_status(...).debug_layer=unavailable. No table row covers "unavailable plus counts". A row such asbackend=warp debug_layer=unavailable\ndebug_errors=1 debug_warnings=0\n->Nonewould close this.P1: 0. P2: 0.
AI-assisted; commands listed were executed locally.