Reject unknown offscreen GPU operations #215

Manually merged
github merged 1 commit from gh-pr/215/head into gh-pr/215/base 2026-11-26 21:34:56 +00:00
Owner

@⁠RonLogic on GitHub · 2026-11-21 18:29 UTC · original
RonLogic:fix/offscreen-invalid-option → main · +26 −0 · 3 files · 1 commits · merged 2026-11-21 19:11 UTC

Summary

A typo such as offscreen_check.exe warp --bvh-wave falls through to the triangle renderer. It generates a BMP named --bvh-wave and exits successfully, which can make a script report a test pass when the requested GPU operation never ran.

Reject unrecognized -- operations at the draw fallback. The command now prints an argument error and exits with status 2 without writing an image. Positional BMP paths and valid GPU checks keep their existing behavior.

Verification

ctest --test-dir out/build/gpu-cli-validation --no-tests=error -R '^(offscreen_(invalid_operation_)?warp|bvh_waves_(hardware|warp))$' --output-on-failure

The new regression check failed before the fix because the command created an image and returned 0. All four tests passed after the fix on Windows 11 with an RTX 4070 and WARP.

Refs #166.

AI-assisted. The Windows results were verified locally.

**@⁠RonLogic** on GitHub · 2026-11-21 18:29 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/215) `RonLogic:fix/offscreen-invalid-option` → `main` · +26 −0 · 3 files · 1 commits · merged 2026-11-21 19:11 UTC ## Summary A typo such as `offscreen_check.exe warp --bvh-wave` falls through to the triangle renderer. It generates a BMP named `--bvh-wave` and exits successfully, which can make a script report a test pass when the requested GPU operation never ran. Reject unrecognized `--` operations at the draw fallback. The command now prints an argument error and exits with status 2 without writing an image. Positional BMP paths and valid GPU checks keep their existing behavior. ## Verification ```powershell ctest --test-dir out/build/gpu-cli-validation --no-tests=error -R '^(offscreen_(invalid_operation_)?warp|bvh_waves_(hardware|warp))$' --output-on-failure ``` The new regression check failed before the fix because the command created an image and returned 0. All four tests passed after the fix on Windows 11 with an RTX 4070 and WARP. Refs #166. AI-assisted. The Windows results were verified locally.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:34:54 +00:00
github manually merged commit 926ca8aaed into gh-pr/215/base 2026-11-26 21:34:56 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.