Repository navigation
check.py, run_gpu_tests.py: exact-word pixel tests accept KosmicKrisp's canonical NaN (TEST-KOSMICKRISP-CANONICAL-NAN) - #2110
Closed
Tauwni wants to merge 1 commit into
Conversation
…isp's canonical NaN where it expects a NaN word KosmicKrisp writes any f32 NaN to an RGBA32F attachment as 0x7fc00000 (the measured row in docs/testing.md), which only ps_nan_payload allowed, so ps_cndmask_sign_mods and ps_valu16_mad_sel failed every pixel there. The same rule (that word, a NaN channel, "driver: KosmicKrisp") now covers every exact-word pixel test in both runners; other drivers stay exact. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Closing this one. Since I opened it, I found the cause: #2229 documents these fixtures ( AI-assisted (Claude Code). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: #1608 (comment)
What and why
KosmicKrisp (Mesa 26.3.1) writes any f32 NaN to an RGBA32F attachment as
0x7fc00000. That is the measured row indocs/testing.md, and until now onlyps_nan_payloadallowed it. Sops_cndmask_sign_modsandps_valu16_mad_sel, which expect non-canonical NaN words (0xff800001,0x7f800001,0xffffffff), failed every pixel on KosmicKrisp while passing on MoltenVK and llvmpipe (the finding in #1608).The same rule now covers every exact-word pixel test, in
check.pyand inrun_gpu_tests.py(check_pixel_const): the canonical word is accepted only in a channel that expects an f32 NaN, and only whenvk_harnessreportsdriver: KosmicKrisp. Finite channels and other drivers stay exact. The Known problems row names the two fixtures.Tested
Apple M3, macOS 26.5.1, test programs built from this branch:
ps_cndmask_sign_modsps_valu16_mad_selps_nan_payloadmain, PASS ("exact but for KosmicKrisp's canonical NaN")run_gpu_tests.pyon all three: no new failure. KosmicKrisp's remaining ones arecs_bvh/cs_bvh32(rdna2spirv: keep NaN-pattern constants out of float-typed selects in image_bvh (OLD-9868) #1212) andcs_imgatomic_ext(cs_imgatomic_ext: use the volume T# key vk_store_test now expects (GPU-IMG-ATOMIC-EXT-VOLUME-TAG) #1518).check.py(with build.py: a text-only fixture's lines are its listing, as in run_gpu_tests.py (TEST-BUILD-TEXT-ONLY) #1444 applied locally sobuild.pyruns): the same two pass on KosmicKrisp.tests/test_shader_checks.py(KosmicKrispCanonicalNaN): canonical NaN accepted on KosmicKrisp only, only that word, only in a NaN channel.cs_fmt_allon KosmicKrisp. Its two mismatches (word 293, an f16 sNaN stored quiet, and word 312, an 11/11/10 float with a changed finite G) aren't this canonicalization, so they stay a finding.GPUs tested: Apple M3 (10-core GPU) with MoltenVK 1.4.2, KosmicKrisp (Mesa 26.3.1) and llvmpipe (Mesa 26.3.1), macOS 26.5.1
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly.🤖 Generated with Claude Code