Skip to content

docs/testing.md: three more KosmicKrisp failures from its (NAN) constant printing - #2229

Draft
Tauwni wants to merge 3 commits into
ProjectLeonida:mainfrom
Tauwni:docs/kk-nan-constant-fixtures
Draft

Tauwni wants to merge 3 commits into
ProjectLeonida:mainfrom
Tauwni:docs/kk-nan-constant-fixtures

Conversation

@Tauwni

@Tauwni Tauwni commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Three fixtures fail on a Mac with KosmicKrisp and pass with MoltenVK 1.4.2 and llvmpipe on the same machine: ps_cndmask_sign_mods, ps_valu16_mad_sel and cs_fmt_all (word 293). I reported them in #1608 without a cause. This PR adds a row to the Known problems table in docs/testing.md, docs only.

The cause is the (NAN) constant printing that the cs_bvh and RGBA32F rows already describe, and it is still in Mesa main. emit_src_component in src/kosmickrisp/compiler/msl_type_inference.c writes every float-typed NaN constant as (NAN), so its payload and sign are lost. MESA_KK_DEBUG=msl on an Apple M3 (macOS 26.5.1, Mesa 26.3.1, main a73a57e13) shows where each one comes from:

Fixture What KosmicKrisp emits Read back Expected
ps_cndmask_sign_mods NIR folds the export to float4((NAN), (NAN), float(-1.40129846432481707e-45), (NAN)) 0x7fc00000 0x7fc00000 0x80000001 0x7fc00000 0xff800001 0x7f800001 0x80000001 0x7f800001
ps_valu16_mad_sel the export folds to float4(..., (NAN), float(-0.0)) channel 2 0x7fc00000 0xffffffff
cs_fmt_all as_type<uint>(float((NAN))) for the input 0x7f800001 of a 16-bit float store word 293 0x80007e00 0x80007c01

The row says the failures are expected with KosmicKrisp and that the expected words should not be weakened, as the cs_bvh row does. The translator is not changed.

AI-assisted (Claude Code). No game data.

🤖 Generated with Claude Code

Red checks: from main, not this change

The failing jobs (check, macos-python, stdlib-tests-linux, linux-gpu-tools, macos, windows) fail the same way on main d48a957bb (MEASURED on macOS for the Python tests, 1 run, with the same assertion text; GPU tests READ from this PR's CI logs). The open pull requests that fix them:

Failing on main Fixed by
test_docs_cli_flags #2536
test_make_game_preflight, test_progress_dashboard (repository URL) #2550
test_docs_repo_paths #2552 (all 14 paths; it conflicts with main, a merge is on Tauwni:fix/2552-merge-main, correction)
test_tool_stdout_encoding #2531, plus two scripts on Tauwni:fix/stdout-replace-two-new-scripts (no PR, open PR limit)
test_windows_boot_journal_seed #2514
test_docs_python_deps passes with the fixes above merged
test_build_runtime_fallback #2573 (passes with it, macOS, 1 run)
vk_bindless_dimensions (macOS) #2441
test_docs_env_vars DOC-CLWB-SETTING (fix)
test_make_game_pipelines, test_sampler_source_census, test_spirv_metal_set0_cli_errors, test_spirv_metal_set0_extra, tests/semantic/test_valu_cvt_f16_int16_mods.py, ps_exp_f32_denorm_rt (macOS) branches on Tauwni/leonida, no PR (finding)
cs_imgatomic_ext (macOS, linux-gpu-tools) #1518, closed without a comment
vk_xdxr_postbuild_readback (Windows) already passes on main: merge main

Not checked by a second agent or human yet.

…ll on KosmicKrisp are its (NAN) constant printing

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 26, 2026
@github-actions github-actions Bot removed the needs rebase Conflicts with the base branch: rebase it on main label Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant