Repository navigation
GPU tests: treat a missing shaderFloat64 as a SKIP, not a FAIL - #4718
bobcatchris wants to merge 1 commit into
Conversation
judge_cs_dump() mapped exit 77 to a skip only for wave64 fixtures, so a 32-wide module needing shaderFloat64 was judged as a failure on devices without the feature even though the harness named the missing capability. Return a SKIP whenever the harness exits 77 with a shaderFloat64 message, in any dump mode; cs_f64_add already did the same at its own call site. Four tests cover the 32-wide case, the other modes, other exit-77 reasons and a normally running module. Apple M2 / MoltenVK 1.4.2 end-to-end: ItsNotRexed#2537's cs_w32_trig_preop went from FAIL to SKIP with this patch, with no code change to that PR. AI-assisted.
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 0f07fb360 on Windows 11: pytest tests/test_run_gpu_tests.py -q -> 45 passed, 53 subtests passed; git diff --check clean.
A device without shaderFloat64 now reports the affected GPU test as SKIP (with the capability named) instead of FAIL, matching the other capability-miss skips; the added cases pin the skip text and that a real failure is still a failure. No blocking issue.
|
Merge-ready. Cosmetic only: the skip text at Approve. AI-assisted review, no game files, no GPU. |
|
Thanks for the merge-ready check and the negative control. I kept the fixed AI-assisted. |
|
Re-ran at head Confirms the earlier 45/45 run at the same SHA. Red control: AI-assisted (Devin). |
|
Verified on Linux: tests/test_run_gpu_tests.py passes all 45 tests, including the 4 new ones — the capability skip fires only when exit 77 names shaderFloat64 (an unrelated 77 still fails, a running module is still judged by its words, and the skip holds in all four dump modes). The Apple Silicon behaviour it fixes could not be exercised here. Note your commit rides the round-43 stacked base; a rebase onto main would shrink the diff dramatically. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). Correction (2026-11-23): the rebase/integration-stack note above was wrong — our verifier tracked a stale main ref. Those base commits are current main; this head contains main and merge-trees cleanly against de67135. No rebase needed; the tests-pass verdict stands unchanged. See the correction note on #4421. |
|
Tested 0f07fb3 merged onto main de67135 on an RTX 5090 (driver 616.92), Windows 11, Vulkan SDK 1.4.363. The GPU test programs were built from the same tree:
AI-assisted (Claude Code). |
Fixes the misclassification found during my Apple M2 check of #2537.
What and why
judge_cs_dump()inscripts/run_gpu_tests.pymapped harness exit 77 to a SKIP only whenwave64=True. A 32-wide fixture that needsshaderFloat64(e.g. #2537'scs_w32_trig_preop) exits 77 on a device without the feature, and was reported as a FAIL with theunsupported: ... no shaderFloat64line as its detail.cs_f64_addalready special-cased the same thing at its call site.Now any exit 77 whose message names
shaderFloat64returns(None, "SKIP (no shaderFloat64 on this device)"), in every dump mode. Other exit-77 reasons are unchanged (still a failure for a non-wave64 fixture).Tested
python -I tests/test_run_gpu_tests.py: 45/45 OK, including four new tests inFloat64CapabilitySkip(32-wide case, all dump modes, unrelated exit-77 reasons, and a normally running module).python -m compileall -q scripts/run_gpu_tests.py tests/test_run_gpu_tests.py: clean.7d3623eawith only this patch applied,python -I scripts/run_gpu_tests.py --filter cs_w32_trig_preop --build <harness>went fromFAIL ... no shaderFloat64toSKIP (no shaderFloat64 on this device), 0/1 passed, 1 skipped. No code change to rdna2spirv: v_dot2_f32_f16, v_dot2c_f32_f16 and v_trig_preop_f64 (SHADER-449) #2537.No game data; synthetic fixtures and counts only.
AI-assisted.