tests: fix NameError in the carry-chain draw that breaks pixel_aot_predicate_rounding on main #752

Manually merged
github merged 1 commit from gh-pr/752/head into gh-pr/752/base 2026-11-26 22:15:49 +00:00
Owner

@⁠rasptum on GitHub · 2026-11-23 00:50 UTC · original
rasptum:tests/carry-chain-draw-name → main · +1 −1 · 1 files · 1 commits · merged 2026-11-23 01:02 UTC

Change

main is red since #695 merged (67edabe): pixel_aot_predicate_rounding_warp and pixel_aot_predicate_rounding_hardware raise

NameError: name 'draw' is not defined

The last loop of check_scalar_carry_chain_draw in tests/pixel_aot_check.py calls subprocess.run(draw, check=True), but that function has no draw. It looks like the line was written against an older shape of the function. This PR replaces it with the command the rest of the function uses for the case it has just written:

subprocess.run([renderer, backend, "--check-pixel-case", shader, case], check=True)

One line, tests only. No translator change, no reference value changed. The two rows that loop draws (s_addc_u32 with a 0xffffffff operand, high A = 1 and 0) now actually run and match.

Verification

Windows 10 Pro 22H2 (10.0.19045), DXC from Windows SDK 10.0.26100.0, debug layer enabled. Based on 356a7be.

Command 356a7be this PR
python -B tests/pixel_aot_check.py draw-predicate-rounding <dxc> <offscreen_check> warp (WARP 10.0.19041.5794) exit 1, NameError exit 0
same, hardware (NVIDIA GeForce RTX 3060, driver 32.0.15.9636) not run exit 0

I did not run the full CTest suite for this one-line change; CI on this PR covers it.

cc @⁠Leyukaka since this touches the control added in #695.

AI assistance: found and written with Claude (Claude Code); the commands above were run on my own machine.

🤖 Generated with Claude Code

**@⁠rasptum** on GitHub · 2026-11-23 00:50 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/752) `rasptum:tests/carry-chain-draw-name` → `main` · +1 −1 · 1 files · 1 commits · merged 2026-11-23 01:02 UTC ## Change `main` is red since #695 merged (`67edabe`): `pixel_aot_predicate_rounding_warp` and `pixel_aot_predicate_rounding_hardware` raise ``` NameError: name 'draw' is not defined ``` The last loop of `check_scalar_carry_chain_draw` in `tests/pixel_aot_check.py` calls `subprocess.run(draw, check=True)`, but that function has no `draw`. It looks like the line was written against an older shape of the function. This PR replaces it with the command the rest of the function uses for the case it has just written: ```python subprocess.run([renderer, backend, "--check-pixel-case", shader, case], check=True) ``` One line, tests only. No translator change, no reference value changed. The two rows that loop draws (`s_addc_u32` with a `0xffffffff` operand, high A = 1 and 0) now actually run and match. ## Verification Windows 10 Pro 22H2 (10.0.19045), DXC from Windows SDK 10.0.26100.0, debug layer enabled. Based on `356a7be`. | Command | `356a7be` | this PR | |---|---|---| | `python -B tests/pixel_aot_check.py draw-predicate-rounding <dxc> <offscreen_check> warp` (WARP 10.0.19041.5794) | exit 1, `NameError` | exit 0 | | same, `hardware` (NVIDIA GeForce RTX 3060, driver 32.0.15.9636) | not run | exit 0 | I did not run the full CTest suite for this one-line change; CI on this PR covers it. cc @⁠Leyukaka since this touches the control added in #695. AI assistance: found and written with Claude (Claude Code); the commands above were run on my own machine. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
check_scalar_carry_chain_draw ends with subprocess.run(draw, check=True),
but no name draw exists in that function, so pixel_aot_predicate_rounding
raises NameError on both backends. Run the pixel case the loop just wrote,
as the other draws in the function do.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:15:45 +00:00
github manually merged commit 80113dfa13 into gh-pr/752/base 2026-11-26 22:15:49 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.