Skip to content

docs: Apple Silicon (M2, MoltenVK) Known problems row - #4813

Open
bobcatchris wants to merge 2 commits into
ItsNotRexed:mainfrom
bobcatchris:docs/apple-m2-known-problems
Open

bobcatchris wants to merge 2 commits into
ItsNotRexed:mainfrom
bobcatchris:docs/apple-m2-known-problems

Conversation

@bobcatchris

Copy link
Copy Markdown
Contributor

Adds one row to the docs/testing.md Known problems table for the fallbacks an Apple Silicon / MoltenVK host needs, based on measurements on this box: Apple M2 (Mac14,3), macOS 26.4 (25E246), MoltenVK 1.4.2 (device Vulkan 1.4.357), subgroup range 4..32, llvm-mc 21.1.8.

The row maps each failing test family to its fallback and records the suite counts at the relevant PR heads and bases: current main 98fa503f (152/217, 58 skipped, 7 known failures), #1845 with and without LEONIDA_LOD_BIAS_FALLBACK, #3302 against f847748cc, #2904 against aa2988cc, and the focused vs_m15 result from #1784.

Tested: python -I tests/test_docs_table_rows.py, test_docs_cli_flags.py, test_docs_links.py and test_docs_table_ids.py all OK on the edited page. No code or game data changed; counts and driver versions only.

AI-assisted.

One row in docs/testing.md recording which tests on an Apple M2 with
MoltenVK 1.4.2 need --lod-bias-fallback, --f16-interp-fallback,
--subgroup-temps or --no-vertex-subgroups, with the measured suite counts
at each PR head and its base. Counts only; no shader text or game data.

AI-assisted.
@tupacfan04

Copy link
Copy Markdown
Contributor

Request changes. Mechanics are clean - merge clean, all 10 tests/test_docs*.py pass, compileall clean, and the negative controls bite (design.md#no-such-anchor fails the links test; an un-piped header fails test_docs_table_rows at :425). The cited SHAs are real and the sums are consistent.

But the row describes behaviour that is not on main:

  1. "The runners select these fallbacks where the device lacks the feature" (docs/testing.md:438) is not true on main: scripts/run_gpu_tests.py:261-284 auto-selects only bary and f16. There is no translator_modes and no LEONIDA_SUBGROUP_TEMPS / LEONIDA_NO_VERTEX_SUBGROUPS / LEONIDA_LOD_BIAS_FALLBACK; those exist only in unmerged Translator: --subgroup-temps keeps subgroup operations out of SPIRV-Cross's short-circuit && / ?: (MoltenVK) #3086, rdna2spirv: --no-vertex-subgroups so VS buffer fetches build on MoltenVK (SHADER-302) #1784 and Apply the S#'s LOD bias in the shader where samplers take none (SHADER-268) #1845.
  2. ps_ssharp_lod and ps_ssharp_ops do not exist on main (only check.py:1588 ps_ssharp); both are added by Apply the S#'s LOD bias in the shader where samplers take none (SHADER-268) #1845, so the row tells current readers that two nonexistent tests fail.
  3. SHADER-529 is miscited: it is the DPP ballot/shuffle eager-subgroup item (tests/semantic/README.md:130, tools/rdna2spirv.py:5655) and is already fixed on main. LOD bias is SHADER-268 (Apply the S#'s LOD bias in the shader where samplers take none (SHADER-268) #1845); f64 is SHADER-479 (Translator: --f64-soft, exact binary64 without shaderFloat64 (SHADER-479) #2904).
  4. "TEST-638: static check that no subgroup result reaches a short-circuiting && / || / ?: (SPIRV-Cross) #3302 b34aed42 ... 18 subgroup tests SKIP to PASS" contradicts Translator: --subgroup-temps keeps subgroup operations out of SPIRV-Cross's short-circuit && / ?: (MoltenVK) #3086's own evidence (docs/design.md:374, docs/testing.md:361): the flag flips cs_dpp_ops FAIL to PASS and "changes no other test".
  5. One four-problem mega-row breaks the table's one-symptom/cause/fix-per-row convention (docs/testing.md:424), and rows at :439+ already cover ps_interp_f16_high and Mac shaderFloat64.

The Mac numbers themselves cannot be re-measured here, but items 1-4 are checkable mismatches against main and the cited PRs. Please split the row, drop the unmerged-only fallbacks and test names, and correct the ticket citations.

AI-assisted review, docs only, no game files, no Mac.

@tedin7

tedin7 commented Nov 23, 2026

Copy link
Copy Markdown

Reviewed c806611 merged onto main de67135 on Linux (CPU only): questions

What I ran: Neighbours run on the merged tree (python3.13, pytest 9.2.0, RunPod Linux): tests/test_ci_registration.py 11 passed (4 subtests), tests/test_docs_links.py 6 passed, tests/test_text_encoding.py 2 passed, tests/test_docs_list_items.py 4 passed.
No code or test files change (docs/testing.md only), so nothing else to execute. I cannot re-measure the Apple Silicon numbers (no Mac). I checked the arithmetic in the new row: 152 passed + 58 skipped + 7 failed = 217; the deltas quoted for #1845 (119 vs 116 of 191, "only those three S# tests differ"), #3302 (138 vs 120, "18 subgroup tests") and the table column count are internally consistent.

Findings:

  1. docs/testing.md (the new row, third column): "The runners select these fallbacks where the device lacks the feature; each can be forced with its LEONIDA_* variable." On current main none of that exists. grep -rn "LOD_BIAS_FALLBACK\|subgroup-temps\|no-vertex-subgroups" over .py/.md/*.cpp at main de67135 finds nothing, and every fallback the row names comes from a still-open PR: Apply the S#'s LOD bias in the shader where samplers take none (SHADER-268) #1845 (LOD bias), Translator: --subgroup-temps keeps subgroup operations out of SPIRV-Cross's short-circuit && / ?: (MoltenVK) #3086 and TEST-638: static check that no subgroup result reaches a short-circuiting && / || / ?: (SPIRV-Cross) #3302 (subgroup temps), Translator: --f64-soft, exact binary64 without shaderFloat64 (SHADER-479) #2904 (f64-soft), rdna2spirv: --no-vertex-subgroups so VS buffer fetches build on MoltenVK (SHADER-302) #1784 (no-vertex-subgroups); all five are OPEN. A user reading a Known problems table on main will look for LEONIDA_LOD_BIAS_FALLBACK and not find it. Suggest wording the third column as "fixed by open PRs #...; not on main yet" and moving the per-PR measurements into those PRs' threads.
  2. The new row overlaps the next existing row about ps_interp_f16_high on a Mac. The new row says it "needs --f16-interp-fallback"; the existing row says current main already translates it with that flag on MoltenVK. The two read as contradicting each other. Please drop that clause from the new row or say it is the manual flag.
  3. The "Measured on this M2 ... current main 98fa503f" figures will age quickly (main has moved); that is fine as a dated measurement but it should say "at 98fa503" rather than "current".

No other defects found: the link-checker, encoding check and CI registration are green; the table row keeps three columns.

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

@bobcatchris

Copy link
Copy Markdown
Contributor Author

@tedin7 addressed at f78253ed: the third column now says the fallbacks live in open PRs #1845, #3086/#3302, #2904 and #1784 and are not on main yet; the overlapping ps_interp_f16_high clause and its PerVertexKHR cause are gone (the existing row covers it); and "current main 98fa503f" is now "main at 98fa503f". All 10 tests/test_docs_*.py pass.

AI-assisted.

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.

3 participants