shader: preserve pixel hardware capability skips #322
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!322
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/322/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Vonsek on GitHub · 2026-11-21 22:05 UTC · original
Vonsek:codex/pixel-hardware-capability-skip→main· +4872 −118 · 74 files · 87 commits · merged 2026-11-22 02:45 UTCChange
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
0d04574against upstream6ee2406on Windows 26200.9974 with WARP 10.0.26100.9818 and RTX 5080 driver 32.0.16.1692. The debug layer was unavailable.The new regression on the original code reached
check_half_drawand raisedCalledProcessErrorfor 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 invokesclang -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 0compiler stub and anexit /b 77renderer stub withpython -B tests/pixel_aot_check.py draw <compiler> <renderer> hardware. CTest configured withSKIP_RETURN_CODE 77recorded 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
tools/cpu_switch_aot.py took RCX, RDX and R8 as arguments and refused any function that reads R9 before writing it ("undefined register r9"). The Windows x64 convention passes the fourth integer argument in R9. ARGUMENTS now holds RCX, RDX, R8 and R9. The entry state of the definedness pass, the local declarations and the emitted signature already derive from that tuple, so every generated function takes a fourth word parameter r9, and a function that used R9 as scratch no longer declares it as a local. The machine code does not show how many parameters the source declares: a function that reads R9 without a fourth integer parameter is accepted and reads what its caller left there, as was already the case for RCX, RDX and R8. Stack arguments and floating-point arguments stay unsupported. The register probe gains probe4, which passes its fifth argument in R9. cpu_aot_fourth_argument translates four exports of fourth_arg.asm (R9 in arithmetic and stored, R9D as a loop counter behind CMP/JA, TEST/JZ and DEC/JNZ, no R9 at all, R9 written before it is read) and compares native and translated calls with a Python reference over the direct-call input pairs crossed with ten fourth arguments. The two exports that never read the incoming R9 must give identical results for every fourth argument, and the LEA index patched from R9 to R10 must be rejected. Co-Authored-By: Claude Opus 5.5 <[email protected]>@chatgpt-codex-connector[bot] on GitHub · 2026-11-21 22:05 UTC · original · edited 2026-11-21 22:07 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
0d04574ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.