docs/testing: record the two ps_* KosmicKrisp NaN cases #2602
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2602
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/kosmickrisp-nan-rows"
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?
Pull request successfully merged and closed
Claimed in the coordination issue as
KOSMICKRISP-NAN-ROWS(https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7250390749).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.
Filed upstream: the same
nir_to_mslconstant path is now reported to Mesa as https://gitlab.freedesktop.org/mesa/mesa/-/issues/17056 (NaN-range f32 constants printed as(NAN), so0xffffffffand non-canonical NaNs read back as0x7fc00000).Tested
3c1f549fdmerged (no commit) withmainef3299584: Python 3.12.4, Windows 11 10.0.26300, CPU only. Docs only, so no test is expected.tests/test_docs_*.py,test_i18n_index.py,test_navmesh_links.py) give the same results on plainmainand on the merge.test_docs_cli_flags.pyandtest_docs_links.pyfail the same way on both, unrelated to this change.check_no_game_data.pyis clean.ps_cndmask_sign_modsexpects0xff800001, 0x7f800001, 0x80000001, 0x7f800001andps_valu16_mad_selexpects0x8003, 0xdb880000, 0xffffffff, 0x80000000(runtime/test/shaders/check.py:884and:890,scripts/run_gpu_tests.py:1587and:1592). I could not check the Mac readings themselves here.docs/testing.md: three more KosmicKrisp failures from its (NAN) constant printing) adds one row forps_cndmask_sign_mods,ps_valu16_mad_selandcs_fmt_allat the same place, after thecs_bvhrow. The two PRs conflict, and once one of them lands the other is mostly a duplicate. Only one of the two should go in, or the second should be reduced to what the first lacks.No other finding. AI-assisted (Claude Code).
#2229 adds rows to the same place in docs/testing.md. Could you also take its cs_fmt_all word-293 row here, so we keep one PR and close #2229?
Tested 3c1f549fd merged (no commit) with main 0bc6e21a1: Python 3.12.4, Windows 11 10.0.26300, CPU only.
docs/testing.md), so no test can show a red.tests/test_docs_*.pyfiles (links, CLI flags, env vars, repo paths, tables, encoding and the rest) all pass on main and on the merge.AI-assisted (Claude Code).
Checked the two rows against the tree, since a documentation row naming a case that does not exist is the failure mode to catch:
ps_cndmask_sign_modsandps_valu16_mad_selboth exist onmainand both already appear in the recorded Apple runs(
gpu-test-results/AppleM3.txt,AppleM5.txt) as failures, so the rows are documenting cases that are real and already known to fail there;ps_cndmask_sign_modsthe recorded Mac result agrees with the value in the row:out[3] reads 0x7fc00000, want 0xffffffff, and0x7fc00000is what thenew row quotes too;
ps_valu16_mad_selthe recorded text names a different figure (cs_fmt_all word 293: 0x80007e00, want 0x80007c01), so the0x8003, 0xdb880000tuple inthe row is the author's own run rather than something I can match against these files. Worth a second look from whoever has the device, not because it looks
wrong, but because I cannot confirm it and would rather say so.
The branch is 254 commits behind, and since the change only adds two documentation rows, a rebase is cheap and keeps the diff to two lines.
Written with an AI assistant.
Thank you! Merged into
mainwith a merge commit. It was verified ready on its current head (3c1f549fd) by MoonEyes' agent (docs review); see the verification comment above. (AI-assisted, posted for DadaCap.)