Identify the input in pixel predicate test failures #217

Merged
RonLogic merged 1 commit from upstream-pr/220 into main 2026-11-21 18:41:23 +00:00
RonLogic commented 2026-11-21 18:33:06 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-21T18:33:06Z.


Summary

The predicate test runs several four-channel shaders against multiple operand pairs. A pixel mismatch reports a channel number but leaves the reader to reconstruct which comparison and operands produced it. This was the missing information in the Windows 10 WARP follow-up to #179.

When a draw fails, the Python runner now adds the backend, predicate group index, both operands and the channel-to-predicate mapping to the original exception.

Verification

ctest --test-dir out/build/gpu-contribution --no-tests=error -R '^pixel_aot_(warp|hardware)$' --output-on-failure

Both tests passed on Windows 11 with an RTX 4070 and WARP. I also supplied a deliberately incorrect reference value for channel 2 in a synthetic WARP draw. The renderer reported the mismatch and the runner identified the case as first=8, left=nan, right=1 with 2=nlg.

Refs #179.

AI-assisted. The Windows results were verified locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6532793412 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/220). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-21T18:33:06Z. --- ## Summary The predicate test runs several four-channel shaders against multiple operand pairs. A pixel mismatch reports a channel number but leaves the reader to reconstruct which comparison and operands produced it. This was the missing information in the Windows 10 WARP follow-up to #179. When a draw fails, the Python runner now adds the backend, predicate group index, both operands and the channel-to-predicate mapping to the original exception. ## Verification ```powershell ctest --test-dir out/build/gpu-contribution --no-tests=error -R '^pixel_aot_(warp|hardware)$' --output-on-failure ``` Both tests passed on Windows 11 with an RTX 4070 and WARP. I also supplied a deliberately incorrect reference value for channel 2 in a synthetic WARP draw. The renderer reported the mismatch and the runner identified the case as `first=8, left=nan, right=1` with `2=nlg`. Refs #179. AI-assisted. The Windows results were verified locally.
upstream-sync closed this pull request 2026-11-24 06:41:52 +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!217
No description provided.