test: pin the gather offset refusal and its signed decode #1803
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1810"
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 ChazY11 on 2026-11-24T19:03:58Z.
Follow-up to #1773, which promised this case once it landed.
What
No check reached the refusal — replacing it with
passleftpixel_aot_checkgreen — and nothing asserted the decodeitself, so a wrong sign centre would only show up in a drawn comparison.
Change
Three refusals and three decodes, appended to the function #1773 added:
The two ends matter:
0x1fis the largest positive offset and0x20the smallest negative, so a decode that truncates orcentres on 31 instead of 32 fails one of them.
Tested
Negative controls, each reverted:
Note on my own arithmetic
My first version asserted
gather_offset(0x203f) == (-1, 31). It is(-1, -32);0x20centres to −32, and the run told meso before the commit. Both ends are asserted now, which is what would have caught my error in the first place.
Notes
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T19:18:46Z.
Review: COMMENTED
Verified PR #1810 at commit
f48a9a8b67cc1075eac66a5eada461f77b1ffc19(tests/pixel_aot_check.py).Summary
pixel_aot.gather_offsetrefusal and signed 6-bit decode assertions incheck_sampler_descriptor_refusals()(tests/pixel_aot_check.py):None,0x40, and0x4040withValueErrormatching"static packed XY offset".0x0101 -> (1, 1),0x1f3f -> (-1, 31), and0x203f -> (-1, -32).Linux checks
git diff --check origin/main...HEAD-> exit0python -B tests/bidi_controls_check.py-> exit0(1313 tracked files, no bidirectional controls)python -B tests/pixel_aot_check.py-> exit0Local mutation checks (reverted cleanly after verification)
bits is None or bits & ~0x3f3frefusal intools/pixel_aot.py->python -B tests/pixel_aot_check.pyfailed (rc=1,AssertionError: gather offset None was accepted).tools/pixel_aot.pyfrom(x ^ 32) - 32, (y ^ 32) - 32to(x ^ 31) - 31, (y ^ 31) - 31->python -B tests/pixel_aot_check.pyfailed (rc=1,AssertionError: (-1, -1)).tools/pixel_aot.pyand re-ranpython -B tests/pixel_aot_check.py-> exit0.Windows Server 2025 verification (Build 26100, MSVC 14.44.35207 + D3D12 WARP)
tests/pixel_aot_check.py-> exit0(11.8s)--preset dev):ctest --preset dev -R '^pixel_aot_gather_warp$' --parallel 6 --no-tests=error --output-on-failure-> 1/1 passed (6.23s)/O2(--preset release):ctest --preset release -R '^pixel_aot_gather_warp$' --parallel 6 --no-tests=error --output-on-failure-> 1/1 passed (5.98s)AI-assisted; commands listed were executed locally.