tests: route the XG linear-fallback control through addrlib #989
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/996"
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 rasptum on 2026-11-23T20:27:43Z.
Refs #979
Refs #870
Follow-up to #979 for the two points Leyukaka raised in review.
1. The linear-fallback control now goes through addrlib and the same comparison.
ADDR_SW_LINEARwith the table's constants, so it could fail only if the table was edited.linear_fallback_providersends each request to addrlib with only the linear block allowed. It is checked by the sametable_mismatches()comparison as the provider under test, which rejects it on 9 of 10 rows. The 8 tiled colour rows getSW_LINEARand the depth target is refused withADDR_INVALIDPARAMS. It agrees only on the 4096x1SW_LINEARrow.xg_swizzle_select_mutationrunsxg_swizzle_select_check --mutate-linear-fallback, which substitutes that provider for the provider under test. It is registeredWILL_FAIL. Observed: 9 row checks fail and so does "matches every reference row", so the run exits 1 and CTest reports a pass.2.
tools/fetch_addrlib.pynow restores the pinned tree.git checkout --force --detach <pin>and thengit clean -ffdx, both only inside theout/deps/mesacheckout.git status --porcelain --ignoredreports anything.src/core/coord.cppand added a stray file. Before the re-run,git statusshowed both. After it, the edit was reverted, the stray file was gone and status was empty.Tested. Commit
907058eondae1ca2, Windows 10 Pro 10.0.19045.6466, MSVC 19.44.35207.1 x64. No GPU is involved.devandreleasefull builds with addrlib (Mesa5c142e46) passed onb3311bf.ctest --preset <p> --no-tests=error -R '^xg_swizzle_select|desktop_root_signature|era_heap_allocation|offscreen_warp'passed 5/5 in each preset.dae1ca2(main only added unrelated CMake entries), I rebuilt the target.ctest --preset <p> --no-tests=error -R '^xg_swizzle_select'passed 2/2 indevandrelease.-DXBOX2WINDOWS_ADDRLIB_DIR=, bothxg_swizzle_selectandxg_swizzle_select_mutationreport Skipped (77).tests/docs_links_check.py,tests/bidi_controls_check.pyandtests/hardware_reports_check.pypassed.pr_overlap_check.py --autofound no overlap.main_function_diff.pyflags onlyfetch_addrlib.py::main, which is the intended change.The results are still AddrLib observations on the PC gfx10.3 reference profile, not console values.
🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T20:35:26Z.
I pushed
54b0a66so the mutation succeeds only when the comparison sees nine mismatches and still matches the linear row. Setup errors now fail that CTest. The fetch script also checks the origin and preserves local work by refusing a dirty checkout before it runs Git updates. Both Release XG CTests passed against pinned Mesa AddrLib. A separate local bare-input smoke test verified first and repeated fetches, preservation of modified and untracked files, and refusal of unrelated or non-empty destinations.