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

Open
opened 2026-11-26 20:18:27 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/564
Author: @etsukow
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: gpu-apple-m4


📝 Commits (1)

  • fbc9aaf gpu-test-results: Apple M4 (MoltenVK 1.4.2, macOS 27.3) on main 1c93c86 (GPU-M4)

📊 Changes

2 files changed (+55 additions, -0 deletions)

View changed files

📝 docs/gpu_test_results.md (+1 -0)
➕ gpu-test-results/AppleM4.txt (+54 -0)

📄 Description

Claimed in the coordination issue as: GPU-M4 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7125932809)

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)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/564 **Author:** [@etsukow](https://github.com/etsukow) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `gpu-apple-m4` --- ### 📝 Commits (1) - [`fbc9aaf`](https://github.com/ubiquitarianism/leonida/commit/fbc9aaf70f7c46494ca4ba810b5a43a41818e433) gpu-test-results: Apple M4 (MoltenVK 1.4.2, macOS 27.3) on main 1c93c86 (GPU-M4) ### 📊 Changes **2 files changed** (+55 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/gpu_test_results.md` (+1 -0) ➕ `gpu-test-results/AppleM4.txt` (+54 -0) </details> ### 📄 Description Claimed in the coordination issue as: GPU-M4 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7125932809) ### 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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#608
No description provided.