Repository navigation
Conversation
ps_cndmask_sign_mods and ps_valu16_mad_sel fail 4096/4096 on KosmicKrisp (Mesa 26.3.1) and pass on llvmpipe with the same Mesa and on MoltenVK 1.4.2; both read back 0x7fc00000 where the shader wrote a non-canonical NaN or 0xffffffff, the same nir_to_msl constant path already recorded for cs_bvh. Measured on an Apple M3, macOS 27.0.
Author
|
Filed upstream: the same |
Contributor
|
Tested
No other finding. 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
KOSMICKRISP-NAN-ROWS(#2570 (comment)).What and why
docs/testing.mdalready records that KosmicKrisp'snir_to_mslprints anyfloat-typed 32-bit constant in the IEEE-754 NaN range as(NAN)(0x7fc00000), withcs_bvh/cs_bvh32as the example. Two more GPU tests fail on that same path and are not listed, so a reader on a Mac sees six red tests and cannot tell which of them is the driver:ps_cndmask_sign_mods— all 4096 pixels differ,(0,0)reads0x7fc00000, 0x7fc00000, 0x80000001, 0x7fc00000, want0xff800001, 0x7f800001, 0x80000001, 0x7f800001.ps_valu16_mad_sel— all 4096 pixels differ,(0,0)reads0x8003, 0xdb880000, 0x7fc00000, 0x80000000, want0x8003, 0xdb880000, 0xffffffff, 0x80000000.Both write a value the GPU stores as
0xffffffffor as a non-canonical NaN, and both read back the canonical0x7fc00000. The entry names the cause and the two drivers that pass, so the next person does not re-derive it.Testing
Apple M3 (Mac15,13), 8 cores, macOS 27.0 (26A5406e):
ps_cndmask_sign_mods: fails 0/1 on KosmicKrisp (Mesa 26.3.1), passes 1/1 on llvmpipe (same Mesa build) and on MoltenVK 1.4.2.ps_valu16_mad_sel: same three results.Each test was run alone through
scripts/run_gpu_tests.py --filterwithVK_DRIVER_FILESnaming one ICD at a time, on the same build.Documentation only: no code, no fixtures, no test changes.
python -I scripts/check_no_game_data.py docs/testing.mdpasses.AI-assisted.