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

Merged
rasptum merged 1 commit from upstream-pr/752 into main 2026-11-23 01:02:37 +00:00
rasptum commented 2026-11-23 00:50:17 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T00:50:17Z.


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

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6550024221 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/752). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T00:50:17Z. --- ## 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)
upstream-sync closed this pull request 2026-11-24 06:44:37 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!746
No description provided.