gpu-test-results: Apple M4 (MoltenVK 1.4.2, macOS 27.3) (GPU-M4) #564

Open
github-bot wants to merge 1 commit from github-bot/gh-564 into main AGit
Owner

@⁠etsukow on GitHub · 2026-11-24 08:19 UTC · original
etsukow:gpu-apple-m4 → main · +55 −0 · 2 files · 1 commits · open

Claimed in the coordination issue as: GPU-M4 (#14)

What and why

Adds the Apple M4 GPU-test record in the gpu-test-results/ format, and its row in docs/gpu_test_results.md. No other Apple silicon desktop is recorded on this repository's main (#552's M5 Pro is still open), so this adds the second Apple data point and cross-checks it against it: native/emulated counts are word-identical (183/61, 214/30) on 1c93c86 and on the M5 machine's d42773d07, and the four failures match. Two differences recorded: ps_ssharp fails deterministically here (3 single-filter runs, same words), and the #543 ps_imgatomic flake never appears on this machine.

The tfe pair (#31) was checked on a clean worktree at #291 (de87b1a): all four cs_imgload* fixtures pass there (4/4), so #291 fixes them on MoltenVK 1.4.2 too. cs_fma_fused was also run under LEONIDA_FMA=khr: the device has shaderFmaFloat32/Float16 and word 7 still reads 0x00000000, which localizes the split to MoltenVK's lowering, not to the emitted OpFmaKHR — recorded in the note.

Tested

  • run_gpu_tests.py native (two full runs, identical results) and with LEONIDA_W64_EMULATE=1: 183/248 (61 skipped) and 214/248 (30 skipped) on commit 1c93c869.
  • build.py + check.py two-step: 280/280 translated, 280 spirv-val; 174 of 219 pass, 39 skipped, 6 failed.
  • ctest: 72/72 passed, 2 skipped (portable macOS subset).
  • #291 checked out clean at de87b1a: the four cs_imgload* fixtures pass.

GPUs tested: Apple M4 (8-core), MoltenVK 1.4.2 (Homebrew bottle), Vulkan loader 1.4.357, macOS 27.3 arm64

AI-assisted: yes (omp)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (not applicable; no translator changes)
**@⁠etsukow** on GitHub · 2026-11-24 08:19 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/564) `etsukow:gpu-apple-m4` → `main` · +55 −0 · 2 files · 1 commits · open Claimed in the coordination issue as: GPU-M4 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### What and why Adds the Apple M4 GPU-test record in the `gpu-test-results/` format, and its row in `docs/gpu_test_results.md`. No other Apple silicon desktop is recorded on this repository's main (#552's M5 Pro is still open), so this adds the second Apple data point and cross-checks it against it: native/emulated counts are word-identical (183/61, 214/30) on `1c93c86` and on the M5 machine's `d42773d07`, and the four failures match. Two differences recorded: `ps_ssharp` fails deterministically here (3 single-filter runs, same words), and the #543 `ps_imgatomic` flake never appears on this machine. The tfe pair (#31) was checked on a clean worktree at #291 (`de87b1a`): all four `cs_imgload*` fixtures pass there (4/4), so #291 fixes them on MoltenVK 1.4.2 too. `cs_fma_fused` was also run under `LEONIDA_FMA=khr`: the device has `shaderFmaFloat32/Float16` and word 7 still reads 0x00000000, which localizes the split to MoltenVK's lowering, not to the emitted `OpFmaKHR` — recorded in the note. ### Tested - `run_gpu_tests.py` native (two full runs, identical results) and with `LEONIDA_W64_EMULATE=1`: 183/248 (61 skipped) and 214/248 (30 skipped) on commit `1c93c869`. - `build.py` + `check.py` two-step: 280/280 translated, 280 spirv-val; 174 of 219 pass, 39 skipped, 6 failed. - `ctest`: 72/72 passed, 2 skipped (portable macOS subset). - #291 checked out clean at `de87b1a`: the four `cs_imgload*` fixtures pass. GPUs tested: Apple M4 (8-core), MoltenVK 1.4.2 (Homebrew bottle), Vulkan loader 1.4.357, macOS 27.3 arm64 AI-assisted: yes (omp) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (not applicable; no translator changes)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:08:46 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 00:40 UTC · original

Reviewed fbc9aaf7, consistency of the record only (no Apple GPU here). Two statements in gpu-test-results/AppleM4.txt contradict the data:

  • Notes, line 51: "The four failures match the M5 Pro record (#552) word for word". Only three do (cs_fma_fused, cs_imgload_tfe, cs_imgload_d16_tfe). The fourth failure here is ps_ssharp, while the fourth in AppleM5Pro.txt is the ps_imgatomic flake (#543), which passes on this machine.
  • Skipped, line 44: "those 30 plus ps_vcmpx_forms". ps_vcmpx_forms is already one of the 30: 61 − 31 wave64 = 16 + 4 + 6 + 1 + 2 + 1 = 30, and that 2 is ps_w64x_readlane + ps_vcmpx_forms. As written, the line implies 31 emulated skips.

All counts add up (174+39+6, 183+61+4, 214+30+4). docs/gpu_test_results.md also conflicts with current main (#552's M5 Pro row is at the same place), so it needs a rebase.

AI-assisted review.

Recommendation: Fix first

**@⁠PierreEbele** on GitHub · 2026-11-25 00:40 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/564#issuecomment-7148761507) Reviewed fbc9aaf7, consistency of the record only (no Apple GPU here). Two statements in `gpu-test-results/AppleM4.txt` contradict the data: - Notes, line 51: "The four failures match the M5 Pro record (#552) word for word". Only three do (`cs_fma_fused`, `cs_imgload_tfe`, `cs_imgload_d16_tfe`). The fourth failure here is `ps_ssharp`, while the fourth in `AppleM5Pro.txt` is the `ps_imgatomic` flake (#543), which passes on this machine. - Skipped, line 44: "those 30 plus ps_vcmpx_forms". `ps_vcmpx_forms` is already one of the 30: 61 − 31 wave64 = 16 + 4 + 6 + 1 + 2 + 1 = 30, and that 2 is `ps_w64x_readlane` + `ps_vcmpx_forms`. As written, the line implies 31 emulated skips. All counts add up (174+39+6, 183+61+4, 214+30+4). `docs/gpu_test_results.md` also conflicts with current `main` (#552's M5 Pro row is at the same place), so it needs a rebase. AI-assisted review. **Recommendation:** Fix first
This pull request has changes conflicting with the target branch.
  • docs/gpu_test_results.md
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/564/head:github-bot/gh-564'
git switch 'github-bot/gh-564'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-564'
git switch 'github-bot/gh-564'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-564'
git switch 'github-bot/gh-564'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-564'
git switch 'main'
git merge --squash 'github-bot/gh-564'
git switch 'main'
git merge --ff-only 'github-bot/gh-564'
git switch 'main'
git merge 'github-bot/gh-564'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.