shader: find VkRunner probe failures on stdout in the FP32 check #628

Merged
Ybucaille merged 1 commit from upstream-pr/634 into main 2026-11-22 17:15:02 +00:00
Ybucaille commented 2026-11-22 16:54:01 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Ybucaille on 2026-11-22T16:54:01Z.


Change

tests/pixel_fp32_vulkan_check.py (#473) requires SSBO probe failed in VkRunner's stderr before it accepts the rounding negative control. Current VkRunner main writes that message to stdout and only the PIGLIT: {"result": "fail" } line to stderr. The negative control therefore fails as intended, but the script still exits with "The rounding negative control did not produce a failing probe". The check now searches the combined output it already prints. The return code test is unchanged, so a run that does not reach the probe still fails the check.

Refs #473

Verification

Tested 0b16ba2 (this change on 14daa49) on x86-64 Linux with Python 3.14.10, DXC 1.10.2605.37, VkRunner c59bea8 (upstream main) and Mesa 26.2.7. The VkRunner revision 3f73c7c3 cited in #473 is not in the upstream repository, so I could not test it.

python -B tests/pixel_fp32_vulkan_check.py "$DXC" "$VKRUNNER" --device 1 --device 2 --device 3
python -B tests/pixel_aot_check.py binary /usr/bin/llvm-mc /usr/bin/llvm-objcopy /usr/lib/libLLVM.so
python -B tests/docs_links_check.py
git diff --check

Devices: Intel UHD Graphics (TGL GT1, Mesa ANV), NVIDIA GeForce RTX 3060 Laptop GPU (driver 620.70.06), llvmpipe (lavapipe).

  • Before: all three devices passed the original helpers. The rounding control failed with line 119: SSBO probe failed on stdout, and the script exited 1 after the first device.
  • After: all three devices passed 46 output-word comparisons and rejected the altered rounding rule at the same probe. Exit code 0, no capability skips.
  • The binary lowering check (LLVM 23.1.5), the docs link check and git diff --check passed.

Evidence and follow-up

A small failing shader_test run directly under VkRunner c59bea8 shows the same split between stdout and stderr. No game files or new fixtures are involved.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6545088938 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/634). Originally posted by [Ybucaille](https://github.com/Ybucaille) on 2026-11-22T16:54:01Z. --- ## Change `tests/pixel_fp32_vulkan_check.py` (#473) requires `SSBO probe failed` in VkRunner's stderr before it accepts the rounding negative control. Current VkRunner `main` writes that message to stdout and only the `PIGLIT: {"result": "fail" }` line to stderr. The negative control therefore fails as intended, but the script still exits with "The rounding negative control did not produce a failing probe". The check now searches the combined output it already prints. The return code test is unchanged, so a run that does not reach the probe still fails the check. Refs #473 ## Verification Tested `0b16ba2` (this change on `14daa49`) on x86-64 Linux with Python 3.14.10, DXC 1.10.2605.37, VkRunner `c59bea8` (upstream `main`) and Mesa 26.2.7. The VkRunner revision `3f73c7c3` cited in #473 is not in the upstream repository, so I could not test it. ```sh python -B tests/pixel_fp32_vulkan_check.py "$DXC" "$VKRUNNER" --device 1 --device 2 --device 3 python -B tests/pixel_aot_check.py binary /usr/bin/llvm-mc /usr/bin/llvm-objcopy /usr/lib/libLLVM.so python -B tests/docs_links_check.py git diff --check ``` Devices: Intel UHD Graphics (TGL GT1, Mesa ANV), NVIDIA GeForce RTX 3060 Laptop GPU (driver 620.70.06), llvmpipe (lavapipe). - Before: all three devices passed the original helpers. The rounding control failed with `line 119: SSBO probe failed` on stdout, and the script exited 1 after the first device. - After: all three devices passed 46 output-word comparisons and rejected the altered rounding rule at the same probe. Exit code 0, no capability skips. - The binary lowering check (LLVM 23.1.5), the docs link check and `git diff --check` passed. ## Evidence and follow-up A small failing `shader_test` run directly under VkRunner `c59bea8` shows the same split between stdout and stderr. No game files or new fixtures are involved. AI-assisted.
upstream-sync closed this pull request 2026-11-24 06:44:04 +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!628
No description provided.