shader: preserve pixel hardware capability skips #317

Merged
Vonsek merged 87 commits from upstream-pr/322 into main 2026-11-22 02:45:31 +00:00
Vonsek commented 2026-11-21 22:05:10 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T22:05:10Z.


Change

Move the half-conversion draw added by #297 after the pixel harness's existing adapter capability check. On a machine without a compatible hardware adapter, the first draw returns 77 to CTest, which records a skip. The half-conversion draw still runs on supported adapters.

Verification

Tested 0d04574 against upstream 6ee2406 on Windows 26200.9974 with WARP 10.0.26100.9818 and RTX 5080 driver 32.0.16.1692. The debug layer was unavailable.

cmake --preset dev
cmake --build --preset dev --target offscreen_check
ctest --preset dev --no-tests=error --output-on-failure -R '^(pixel_aot_(warp|hardware)|docs_links)$'
python -B tests/pixel_aot_check.py binary "<LLVM 15.0.7 gfx1013 assembler wrapper>" "<LLVM 15.0.7 llvm-objcopy.exe>" "<LLVM 15.0.7 LLVM-C.dll>"
python -B tests/bidi_controls_check.py
git diff --check

The new regression on the original code reached check_half_draw and raised CalledProcessError for renderer status 77. On this branch the harness returns 77. All three targeted tests and the LLVM, bidi and whitespace checks passed. The Windows assembler wrapper invokes clang -cc1as -triple amdgcn--amdpal -target-cpu gfx1013 -filetype obj.

Evidence and follow-up

The source-only regression stubs the compiler and renderer while calling the real draw test entry point. A separate process check used an exit /b 0 compiler stub and an exit /b 77 renderer stub with python -B tests/pixel_aot_check.py draw <compiler> <renderer> hardware. CTest configured with SKIP_RETURN_CODE 77 recorded the one simulated no-adapter case as skipped. The real display-adapter draw tests both passed without skips. This restores the existing test contract documented in AGENTS.md.

This contribution was AI-assisted.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6534996878 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/322). Originally posted by [Vonsek](https://github.com/Vonsek) on 2026-11-21T22:05:10Z. --- ## Change Move the half-conversion draw added by #297 after the pixel harness's existing adapter capability check. On a machine without a compatible hardware adapter, the first draw returns 77 to CTest, which records a skip. The half-conversion draw still runs on supported adapters. ## Verification Tested `0d04574` against upstream `6ee2406` on Windows 26200.9974 with WARP 10.0.26100.9818 and RTX 5080 driver 32.0.16.1692. The debug layer was unavailable. ```powershell cmake --preset dev cmake --build --preset dev --target offscreen_check ctest --preset dev --no-tests=error --output-on-failure -R '^(pixel_aot_(warp|hardware)|docs_links)$' python -B tests/pixel_aot_check.py binary "<LLVM 15.0.7 gfx1013 assembler wrapper>" "<LLVM 15.0.7 llvm-objcopy.exe>" "<LLVM 15.0.7 LLVM-C.dll>" python -B tests/bidi_controls_check.py git diff --check ``` The new regression on the original code reached `check_half_draw` and raised `CalledProcessError` for renderer status 77. On this branch the harness returns 77. All three targeted tests and the LLVM, bidi and whitespace checks passed. The Windows assembler wrapper invokes `clang -cc1as -triple amdgcn--amdpal -target-cpu gfx1013 -filetype obj`. ## Evidence and follow-up The source-only regression stubs the compiler and renderer while calling the real draw test entry point. A separate process check used an `exit /b 0` compiler stub and an `exit /b 77` renderer stub with `python -B tests/pixel_aot_check.py draw <compiler> <renderer> hardware`. CTest configured with `SKIP_RETURN_CODE 77` recorded the one simulated no-adapter case as skipped. The real display-adapter draw tests both passed without skips. This restores the existing test contract documented in AGENTS.md. This contribution was AI-assisted. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets.
upstream-sync closed this pull request 2026-11-24 06:42:24 +00:00
chatgpt-codex-connector[bot commented 2026-11-24 06:48:07 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T22:05:19Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T22:07:23.447731Z 0d04574 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7069930655 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/322#issuecomment-7069930655). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-21T22:05:19Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"0d04574a8f99d238fb8dab085959a0cf7237ddee","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-21T22:07:23.447731Z">2026-11-21T22:07:23.447731Z</relative-time> | `0d04574` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
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!317
No description provided.