Identify the input in pixel predicate test failures #220

Manually merged
github merged 1 commit from gh-pr/220/head into gh-pr/220/base 2026-11-26 21:35:14 +00:00
Owner

@⁠RonLogic on GitHub · 2026-11-21 18:33 UTC · original
RonLogic:test/pixel-predicate-context → main · +10 −1 · 1 files · 1 commits · merged 2026-11-21 18:41 UTC

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.

**@⁠RonLogic** on GitHub · 2026-11-21 18:33 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/220) `RonLogic:test/pixel-predicate-context` → `main` · +10 −1 · 1 files · 1 commits · merged 2026-11-21 18:41 UTC ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:35:14 +00:00
github manually merged commit 88ccc525e8 into gh-pr/220/base 2026-11-26 21:35:14 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.