From 5346c77be6e8615c06265348cf941f8249c8afc5 Mon Sep 17 00:00:00 2001 From: Tauwni <102470988+Tauwni@users.noreply.github.com> Date: Wed, 25 Nov 2026 10:36:38 +0100 Subject: [PATCH 1/6] gpu-test-results: Apple M3 on MoltenVK 1.4.2 (macOS 26.5.1) at 626d1281a (GPU-M3) Co-Authored-By: Claude Opus 5.5 --- docs/gpu_test_results.md | 1 + gpu-test-results/AppleM3.txt | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 gpu-test-results/AppleM3.txt diff --git a/docs/gpu_test_results.md b/docs/gpu_test_results.md index 25a73c7f5d..d4cc1f92ef 100644 --- a/docs/gpu_test_results.md +++ b/docs/gpu_test_results.md @@ -12,6 +12,7 @@ post counts and pass/fail lines there, never game shaders, logs or private paths | AMD Radeon RX 7900 GRE (RDNA3, gfx1100), subgroup 32..64 | AMD proprietary 26.11.2 (LLPC), Vulkan 1.4.359, Windows 11 x64 | `5d74c27` | 247/247 translated and valid | run via run_gpu_tests.py | 225/241 passed, 16 skipped | none | [#166](https://github.com/ItsNotRexed/Leonida/issues/166#issuecomment-7115041436) | | Intel Graphics (Meteor Lake, Xe-LPG), subgroup 8..32 | ANV, Mesa 26.2.7, Vulkan 1.4.354, Fedora 45 | `84347bb` | 279/279 translated and valid | 177/219 pass, 40 skipped, 2 failed | 194/248 passed, 52 skipped (native); 226/248 passed, 20 skipped (`LEONIDA_W64_EMULATE=1`) | `cs_imgload_tfe`, `cs_imgload_d16_tfe` (#31; pass with #98) | [local note](../gpu-test-results/IntelMTL.txt) | | Apple M5 Pro (16-core GPU, Metal 4), subgroup 4..32 | MoltenVK 1.4.2 (Homebrew), Vulkan 1.4.357, macOS 26.7.3 (25G342) | `d42773d07` | 280/280 translated and valid | 175/219 pass, 39 skipped, 5 failed | 183/248 passed, 61 skipped, 4 failed (native); 214/248 passed, 30 skipped, 4 failed (`LEONIDA_W64_EMULATE=1`) | `cs_fma_fused` (known row), `cs_imgload_tfe`, `cs_imgload_d16_tfe` (pass with #291), `ps_imgatomic` flake (#543) | [local note](../gpu-test-results/AppleM5Pro.txt) | +| Apple M3 (10-core GPU), subgroup 32 | MoltenVK 1.4.2 (Homebrew), Vulkan 1.4.357, macOS 26.5.1 (25F80) | `626d1281a` | stops at `cs_dpp_cmp` on `main`; 297/297 translated and valid with #1444 | 183/231 pass, 43 skipped, 5 failed (with #1444) | 192/263 passed, 68 skipped, 3 failed (native); 225/263 passed, 35 skipped, 3 failed (`LEONIDA_W64_EMULATE=1`) | `cs_fma_fused` (known row), `ps_ssharp` (expected on Metal), `cs_imgatomic_ext` (deterministic, 20/20); check.py also `ps_ij_computed`, `ps_interp_f16_high` (no PerVertexKHR) | [local note](../gpu-test-results/AppleM3.txt) | ## AMD Radeon RX 9070 GRE — 2026-11-23 diff --git a/gpu-test-results/AppleM3.txt b/gpu-test-results/AppleM3.txt new file mode 100644 index 0000000000..14a4a8e62a --- /dev/null +++ b/gpu-test-results/AppleM3.txt @@ -0,0 +1,30 @@ +GPU: Apple M3 (Apple GPU, 10 cores), subgroup 32 +Driver: MoltenVK 1.4.2 (Homebrew bottle), Vulkan 1.4.357 +Subgroup: 32 (no native 64-wide, no mesh, no geometry stage, no PerVertexKHR) +OS: macOS 26.5.1 (25F80), arm64 +Commit: 626d1281a (main, 2026-11-25) +Tools: llvm-mc 23.1.6 (Homebrew, AMDGPU target), SPIRV-Tools 1.4.363.0 (Homebrew), CMake 4.5.1, + Python 3.15.2 +build.py: on main it stops at cs_dpp_cmp.asm ("dpp variant of this instruction is not supported": no + llvm-mc encodes a VOPC compare in DPP form for gfx1013) and writes no SPIR-V, so check.py runs + nothing. With #1444 (TEST-BUILD-TEXT-ONLY) applied locally and not committed: 297 shaders, 297 + translated, 297 pass spirv-val (six mesh fixtures not built: no VK_EXT_mesh_shader). +check.py: 183 of 231 pass, 43 skipped, 5 failed (with #1444's build.py output) +run_gpu_tests.py: 192/263 passed, 68 skipped, 3 failed + 225/263 passed, 35 skipped, 3 failed (LEONIDA_W64_EMULATE=1) +ctest: 85/85 passed, 2 skipped (shader_library_corpus, vk_sync_validation) +Failed: cs_fma_fused: word 7 (f16) reads 0x00000000, want 0x00007351. The known MoltenVK 1.4.2 row + of docs/testing.md, and in the macOS job's EXPECTED_FAILURES. + ps_ssharp: point bias +1: (0,0) reads (1.0, 0.0, 0.502, 0.502), want (0.502, 0.502, 0.502, + 0.502). In the macOS job's EXPECTED_FAILURES (the S#'s LOD bias, which a Metal sampler can't + take); the Apple M4 result in #564 reads the same pixel. + cs_imgatomic_ext: 6 of 64 sint words differ; first word 32 reads 0x0badf00d, want 0x00000101. + 0x0badf00d is the initial value of the swap row, so 6 sint words still hold it after the + image_atomic_swap. The fixture is from 367d91ef (GPU-IMG-ATOMIC-EXT); it is not in + EXPECTED_FAILURES or in the Known problems table. +Repeats: the three fail the same way every time: 4 full native runs, 1 full LEONIDA_W64_EMULATE=1 run, + then 20 runs of each with --filter (20/20 failed, same words). cs_dpp_cmp passed 20/20. +check.py only: ps_ij_computed and ps_interp_f16_high report "vk_harness failed or returned no pixels": + the device has no PerVertexKHR inputs, as on the Apple M5 Pro. +Skipped: 33 "full 64-wide compute subgroups unavailable" (the wave64 compute tests), 5 mesh fixtures + (no VK_EXT_mesh_shader), 16 fixtures the d3d12_* tests run, and 14 others (see the run log). From 30203dcddcde82f48ad62e65bb155735d563e86a Mon Sep 17 00:00:00 2001 From: Tauwni <102470988+Tauwni@users.noreply.github.com> Date: Wed, 25 Nov 2026 11:02:25 +0100 Subject: [PATCH 2/6] gpu-test-results: Apple M3: cs_imgatomic_ext is the missing volume tag that #1518 adds (GPU-M3) Co-Authored-By: Claude Opus 5.5 --- docs/gpu_test_results.md | 2 +- gpu-test-results/AppleM3.txt | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/gpu_test_results.md b/docs/gpu_test_results.md index d4cc1f92ef..f11c1a1cba 100644 --- a/docs/gpu_test_results.md +++ b/docs/gpu_test_results.md @@ -12,7 +12,7 @@ post counts and pass/fail lines there, never game shaders, logs or private paths | AMD Radeon RX 7900 GRE (RDNA3, gfx1100), subgroup 32..64 | AMD proprietary 26.11.2 (LLPC), Vulkan 1.4.359, Windows 11 x64 | `5d74c27` | 247/247 translated and valid | run via run_gpu_tests.py | 225/241 passed, 16 skipped | none | [#166](https://github.com/ItsNotRexed/Leonida/issues/166#issuecomment-7115041436) | | Intel Graphics (Meteor Lake, Xe-LPG), subgroup 8..32 | ANV, Mesa 26.2.7, Vulkan 1.4.354, Fedora 45 | `84347bb` | 279/279 translated and valid | 177/219 pass, 40 skipped, 2 failed | 194/248 passed, 52 skipped (native); 226/248 passed, 20 skipped (`LEONIDA_W64_EMULATE=1`) | `cs_imgload_tfe`, `cs_imgload_d16_tfe` (#31; pass with #98) | [local note](../gpu-test-results/IntelMTL.txt) | | Apple M5 Pro (16-core GPU, Metal 4), subgroup 4..32 | MoltenVK 1.4.2 (Homebrew), Vulkan 1.4.357, macOS 26.7.3 (25G342) | `d42773d07` | 280/280 translated and valid | 175/219 pass, 39 skipped, 5 failed | 183/248 passed, 61 skipped, 4 failed (native); 214/248 passed, 30 skipped, 4 failed (`LEONIDA_W64_EMULATE=1`) | `cs_fma_fused` (known row), `cs_imgload_tfe`, `cs_imgload_d16_tfe` (pass with #291), `ps_imgatomic` flake (#543) | [local note](../gpu-test-results/AppleM5Pro.txt) | -| Apple M3 (10-core GPU), subgroup 32 | MoltenVK 1.4.2 (Homebrew), Vulkan 1.4.357, macOS 26.5.1 (25F80) | `626d1281a` | stops at `cs_dpp_cmp` on `main`; 297/297 translated and valid with #1444 | 183/231 pass, 43 skipped, 5 failed (with #1444) | 192/263 passed, 68 skipped, 3 failed (native); 225/263 passed, 35 skipped, 3 failed (`LEONIDA_W64_EMULATE=1`) | `cs_fma_fused` (known row), `ps_ssharp` (expected on Metal), `cs_imgatomic_ext` (deterministic, 20/20); check.py also `ps_ij_computed`, `ps_interp_f16_high` (no PerVertexKHR) | [local note](../gpu-test-results/AppleM3.txt) | +| Apple M3 (10-core GPU), subgroup 32 | MoltenVK 1.4.2 (Homebrew), Vulkan 1.4.357, macOS 26.5.1 (25F80) | `626d1281a` | stops at `cs_dpp_cmp` on `main`; 297/297 translated and valid with #1444 | 183/231 pass, 43 skipped, 5 failed (with #1444) | 192/263 passed, 68 skipped, 3 failed (native); 225/263 passed, 35 skipped, 3 failed (`LEONIDA_W64_EMULATE=1`) | `cs_fma_fused` (known row), `ps_ssharp` (expected on Metal), `cs_imgatomic_ext` (fixed by #1518); check.py also `ps_ij_computed`, `ps_interp_f16_high` (no PerVertexKHR) | [local note](../gpu-test-results/AppleM3.txt) | ## AMD Radeon RX 9070 GRE — 2026-11-23 diff --git a/gpu-test-results/AppleM3.txt b/gpu-test-results/AppleM3.txt index 14a4a8e62a..b3a71536c4 100644 --- a/gpu-test-results/AppleM3.txt +++ b/gpu-test-results/AppleM3.txt @@ -20,8 +20,10 @@ Failed: cs_fma_fused: word 7 (f16) reads 0x00000000, want 0x00007351. The kn take); the Apple M4 result in #564 reads the same pixel. cs_imgatomic_ext: 6 of 64 sint words differ; first word 32 reads 0x0badf00d, want 0x00000101. 0x0badf00d is the initial value of the swap row, so 6 sint words still hold it after the - image_atomic_swap. The fixture is from 367d91ef (GPU-IMG-ATOMIC-EXT); it is not in - EXPECTED_FAILURES or in the Known problems table. + image_atomic_swap; the volume keeps every fill, so none of the six 3D ops runs. Not + Mac-specific: it fails the same way on KosmicKrisp and llvmpipe (Mesa 26.3.1) on this machine, + passes at 367d91ef where it was added, and first fails at #939 (the volume UAV tag). #1518 adds + the tag to the fixture and it then passes on MoltenVK, KosmicKrisp and llvmpipe. Repeats: the three fail the same way every time: 4 full native runs, 1 full LEONIDA_W64_EMULATE=1 run, then 20 runs of each with --filter (20/20 failed, same words). cs_dpp_cmp passed 20/20. check.py only: ps_ij_computed and ps_interp_f16_high report "vk_harness failed or returned no pixels": From b6e7acfb3225343cc45a0d5bbb863db5687564ba Mon Sep 17 00:00:00 2001 From: Tauwni <102470988+Tauwni@users.noreply.github.com> Date: Wed, 25 Nov 2026 11:15:51 +0100 Subject: [PATCH 3/6] gpu-test-results: Apple M3: KosmicKrisp run, and the open pull requests that fix each failure here (GPU-M3) Co-Authored-By: Claude Opus 5.5 --- docs/gpu_test_results.md | 2 +- gpu-test-results/AppleM3.txt | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/docs/gpu_test_results.md b/docs/gpu_test_results.md index f11c1a1cba..1d9a2ddbf1 100644 --- a/docs/gpu_test_results.md +++ b/docs/gpu_test_results.md @@ -12,7 +12,7 @@ post counts and pass/fail lines there, never game shaders, logs or private paths | AMD Radeon RX 7900 GRE (RDNA3, gfx1100), subgroup 32..64 | AMD proprietary 26.11.2 (LLPC), Vulkan 1.4.359, Windows 11 x64 | `5d74c27` | 247/247 translated and valid | run via run_gpu_tests.py | 225/241 passed, 16 skipped | none | [#166](https://github.com/ItsNotRexed/Leonida/issues/166#issuecomment-7115041436) | | Intel Graphics (Meteor Lake, Xe-LPG), subgroup 8..32 | ANV, Mesa 26.2.7, Vulkan 1.4.354, Fedora 45 | `84347bb` | 279/279 translated and valid | 177/219 pass, 40 skipped, 2 failed | 194/248 passed, 52 skipped (native); 226/248 passed, 20 skipped (`LEONIDA_W64_EMULATE=1`) | `cs_imgload_tfe`, `cs_imgload_d16_tfe` (#31; pass with #98) | [local note](../gpu-test-results/IntelMTL.txt) | | Apple M5 Pro (16-core GPU, Metal 4), subgroup 4..32 | MoltenVK 1.4.2 (Homebrew), Vulkan 1.4.357, macOS 26.7.3 (25G342) | `d42773d07` | 280/280 translated and valid | 175/219 pass, 39 skipped, 5 failed | 183/248 passed, 61 skipped, 4 failed (native); 214/248 passed, 30 skipped, 4 failed (`LEONIDA_W64_EMULATE=1`) | `cs_fma_fused` (known row), `cs_imgload_tfe`, `cs_imgload_d16_tfe` (pass with #291), `ps_imgatomic` flake (#543) | [local note](../gpu-test-results/AppleM5Pro.txt) | -| Apple M3 (10-core GPU), subgroup 32 | MoltenVK 1.4.2 (Homebrew), Vulkan 1.4.357, macOS 26.5.1 (25F80) | `626d1281a` | stops at `cs_dpp_cmp` on `main`; 297/297 translated and valid with #1444 | 183/231 pass, 43 skipped, 5 failed (with #1444) | 192/263 passed, 68 skipped, 3 failed (native); 225/263 passed, 35 skipped, 3 failed (`LEONIDA_W64_EMULATE=1`) | `cs_fma_fused` (known row), `ps_ssharp` (expected on Metal), `cs_imgatomic_ext` (fixed by #1518); check.py also `ps_ij_computed`, `ps_interp_f16_high` (no PerVertexKHR) | [local note](../gpu-test-results/AppleM3.txt) | +| Apple M3 (10-core GPU), subgroup 32 | MoltenVK 1.4.2 (Homebrew), Vulkan 1.4.357, macOS 26.5.1 (25F80) | `626d1281a` | stops at `cs_dpp_cmp` on `main`; 297/297 translated and valid with #1444 | 183/231 pass, 43 skipped, 5 failed (with #1444) | 192/263 passed, 68 skipped, 3 failed (native); 225/263 passed, 35 skipped, 3 failed (`LEONIDA_W64_EMULATE=1`) | `cs_fma_fused` (known row), `ps_ssharp` (expected on Metal), `cs_imgatomic_ext` (fixed by #1518); check.py also `ps_ij_computed`, `ps_interp_f16_high` (no PerVertexKHR, #822); KosmicKrisp: 187/263, `cs_bvh`, `cs_bvh32` (#1212), `ps_cndmask_sign_mods`, `ps_valu16_mad_sel`, `cs_imgatomic_ext` | [local note](../gpu-test-results/AppleM3.txt) | ## AMD Radeon RX 9070 GRE — 2026-11-23 diff --git a/gpu-test-results/AppleM3.txt b/gpu-test-results/AppleM3.txt index b3a71536c4..0d868f5da0 100644 --- a/gpu-test-results/AppleM3.txt +++ b/gpu-test-results/AppleM3.txt @@ -30,3 +30,34 @@ check.py only: ps_ij_computed and ps_interp_f16_high report "vk_harness failed o the device has no PerVertexKHR inputs, as on the Apple M5 Pro. Skipped: 33 "full 64-wide compute subgroups unavailable" (the wave64 compute tests), 5 mesh fixtures (no VK_EXT_mesh_shader), 16 fixtures the d3d12_* tests run, and 14 others (see the run log). + +KosmicKrisp (Mesa 26.3.1, Homebrew), same machine, commit and test programs, through the Vulkan loader +(LEONIDA_VULKAN_LOADER=/opt/homebrew/opt/vulkan-loader/lib/libvulkan.1.dylib, +VK_DRIVER_FILES=/opt/homebrew/share/vulkan/icd.d/kosmickrisp_mesa_icd.aarch64.json); subgroup 32..32: +run_gpu_tests.py: 187/263 passed, 71 skipped, 5 failed + 220/263 passed, 38 skipped, 5 failed (LEONIDA_W64_EMULATE=1) +ctest: 85/85 passed +Failed: cs_bvh and cs_bvh32: out[3] reads 0x7fc00000 (2143289344), want 0xffffffff. The known + KosmicKrisp row of docs/testing.md (nir_to_msl prints a float-typed NaN-range constant as NAN). + cs_imgatomic_ext: the same words as on MoltenVK (#1518). + ps_cndmask_sign_mods: 4096/4096 pixels, (0,0) reads 0x7fc00000 0x7fc00000 0x80000001 0x7fc00000, + want 0xff800001 0x7f800001 0x80000001 0x7f800001. + ps_valu16_mad_sel: 4096/4096 pixels, (0,0) channel 2 reads 0x7fc00000, want 0xffffffff. + Both from 2026-11-23, both pass on MoltenVK and llvmpipe here, and both look like the measured + KosmicKrisp NaN canonicalization in docs/testing.md; check.py allows it for ps_nan_payload + only, and neither fixture is in that table yet. + cs_fma_fused passes on KosmicKrisp ("1/7 f32 fused, 6/7 split ... f16 exact"), and so do + ps_ssharp, cs_imgatomic and cs_imgatomic3d. + +Open pull requests run here against the same test programs (MoltenVK = MVK, KosmicKrisp = KK): + #1444 (build.py text-only fixtures): build.py and check.py as above. + #1518 (cs_imgatomic_ext volume tag): passes on MVK, KK and llvmpipe. + #1724 (cs_fma_fused f16 operands at run time): passes on MVK 20/20, but on KK word 7 then + reads 0x00007352, want 0x00007351 (20/20), where main passes; llvmpipe passes either way. + #822 (check.py f16 interpolation fallback from the device): ps_interp_f16_high ok and + ps_ij_computed SKIP ("computed I/J pairs need PerVertexKHR inputs") on MVK. + #1426 (computed I/J under --bary-fallback): ps_ij_computed and ps_interp_f16_high still + "vk_harness failed" on MVK; the fallback needs a geometry stage, which Metal does not have. + #1212 and #137 (NaN-pattern constants in image_bvh): cs_bvh and cs_bvh32 pass on KK and MVK. + ps_ssharp: no open pull request found; Metal samplers take no LOD bias (old #7587, indexed in + #18). From 1fa64472b5b9cb7676ab09832e80504445fe5826 Mon Sep 17 00:00:00 2001 From: Tauwni <102470988+Tauwni@users.noreply.github.com> Date: Wed, 25 Nov 2026 11:43:44 +0100 Subject: [PATCH 4/6] gpu-test-results: Apple M3: KosmicKrisp check.py, and all open fixes run together (GPU-M3) Co-Authored-By: Claude Opus 5.5 --- gpu-test-results/AppleM3.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gpu-test-results/AppleM3.txt b/gpu-test-results/AppleM3.txt index 0d868f5da0..d6e49c68a6 100644 --- a/gpu-test-results/AppleM3.txt +++ b/gpu-test-results/AppleM3.txt @@ -36,7 +36,10 @@ KosmicKrisp (Mesa 26.3.1, Homebrew), same machine, commit and test programs, thr VK_DRIVER_FILES=/opt/homebrew/share/vulkan/icd.d/kosmickrisp_mesa_icd.aarch64.json); subgroup 32..32: run_gpu_tests.py: 187/263 passed, 71 skipped, 5 failed 220/263 passed, 38 skipped, 5 failed (LEONIDA_W64_EMULATE=1) +check.py: 177 of 231 pass, 48 skipped (with #1444's build.py output) ctest: 85/85 passed +check.py only: cs_fmt_all word 293: expected 0x80007c01, got 0x80007e00 (an f16 signalling NaN stored + quiet); it passes on MoltenVK, and run_gpu_tests.py does not run it yet (#800). Failed: cs_bvh and cs_bvh32: out[3] reads 0x7fc00000 (2143289344), want 0xffffffff. The known KosmicKrisp row of docs/testing.md (nir_to_msl prints a float-typed NaN-range constant as NAN). cs_imgatomic_ext: the same words as on MoltenVK (#1518). @@ -61,3 +64,15 @@ Open pull requests run here against the same test programs (MoltenVK = MVK, Kosm #1212 and #137 (NaN-pattern constants in image_bvh): cs_bvh and cs_bvh32 pass on KK and MVK. ps_ssharp: no open pull request found; Metal samplers take no LOD bias (old #7587, indexed in #18). + +All of them together, on main 57ba40bd6 with #1444, #1518, #1724, #822, #1212, #1673, #1657, #1412 and +#1375 merged (#822 and #1444 conflict in runtime/test/shaders/build.py: each adds a block at the same place, +kept both), test programs rebuilt from that tree: +MoltenVK: build.py 296/296 translated and valid; check.py 186 of 231 pass, 44 skipped, 1 failed; + run_gpu_tests.py 194/263 passed, 68 skipped, 1 failed (227/263 with LEONIDA_W64_EMULATE=1); + the one failure is ps_ssharp. +KosmicKrisp: check.py 180 of 231 pass, 47 skipped; run_gpu_tests.py 189/263 passed, 71 skipped, 3 failed + (222/263 emulated): cs_fma_fused (from #1724), ps_cndmask_sign_mods, ps_valu16_mad_sel; + check.py also cs_fmt_all. +ctest: 88/88 passed. Python: translator suite 489 files, 6292 tests, 0 failed; standard-library + loop 499 files, 0 failed; pytest files 1912 passed, 18 skipped, 0 failed. From 459cbb9b19193ffd4fbb18442497bc885de8c728 Mon Sep 17 00:00:00 2001 From: Tauwni <102470988+Tauwni@users.noreply.github.com> Date: Wed, 25 Nov 2026 12:50:37 +0100 Subject: [PATCH 5/6] gpu-test-results: Apple M3: ps_ssharp passes with #1774 (GPU-M3) Co-Authored-By: Claude Opus 5.5 --- gpu-test-results/AppleM3.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpu-test-results/AppleM3.txt b/gpu-test-results/AppleM3.txt index d6e49c68a6..1f1019257f 100644 --- a/gpu-test-results/AppleM3.txt +++ b/gpu-test-results/AppleM3.txt @@ -62,8 +62,8 @@ Open pull requests run here against the same test programs (MoltenVK = MVK, Kosm #1426 (computed I/J under --bary-fallback): ps_ij_computed and ps_interp_f16_high still "vk_harness failed" on MVK; the fallback needs a geometry stage, which Metal does not have. #1212 and #137 (NaN-pattern constants in image_bvh): cs_bvh and cs_bvh32 pass on KK and MVK. - ps_ssharp: no open pull request found; Metal samplers take no LOD bias (old #7587, indexed in - #18). + #1774 (--explicit-lod-bias, the S# LOD bias in the shader on MoltenVK): ps_ssharp passes on MVK; + with all of the above merged, MVK has no failure left. All of them together, on main 57ba40bd6 with #1444, #1518, #1724, #822, #1212, #1673, #1657, #1412 and #1375 merged (#822 and #1444 conflict in runtime/test/shaders/build.py: each adds a block at the same place, From 31e8b01a60fd5ed0b1f7de5ab8e62b0460cc0979 Mon Sep 17 00:00:00 2001 From: Tauwni <102470988+Tauwni@users.noreply.github.com> Date: Thu, 26 Nov 2026 14:39:04 +0100 Subject: [PATCH 6/6] gpu-test-results: Apple M3 again at a73a57e13, with KosmicKrisp, llvmpipe, validation and ctest Co-Authored-By: Claude Opus 5.5 --- docs/gpu_test_results.md | 2 +- gpu-test-results/AppleM3.txt | 136 +++++++++++++++++------------------ 2 files changed, 67 insertions(+), 71 deletions(-) diff --git a/docs/gpu_test_results.md b/docs/gpu_test_results.md index ee43b96cb7..17211582be 100644 --- a/docs/gpu_test_results.md +++ b/docs/gpu_test_results.md @@ -16,7 +16,7 @@ post counts and pass/fail lines there, never game shaders, logs or private paths | Intel Graphics (Meteor Lake, Xe-LPG), subgroup 8..32 | ANV, Mesa 26.2.7, Vulkan 1.4.354, Fedora 45 | `84347bb` | 279/279 translated and valid | 177/219 pass, 40 skipped, 2 failed | 194/248 passed, 52 skipped (native); 226/248 passed, 20 skipped (`LEONIDA_W64_EMULATE=1`) | `cs_imgload_tfe`, `cs_imgload_d16_tfe` (#31; pass with #98) | [local note](../gpu-test-results/IntelMTL.txt) | | NVIDIA GeForce RTX 5070 Ti (Blackwell), subgroup 32..32 | NVIDIA 617.42, Vulkan 1.4.351, Windows 11 Pro 26300 | `21625bc` | 257/257 translated and valid (run_gpu_tests.py) | run via run_gpu_tests.py | 197/248 passed, 49 skipped, 2 failed (native); 229/248 passed, 17 skipped, 2 failed (`LEONIDA_W64_EMULATE=1`) | `cs_imgload_tfe`, `cs_imgload_d16_tfe` (#31) | [local note](../gpu-test-results/RTX5070Ti.txt) | | Apple M5 Pro (16-core GPU, Metal 4), subgroup 4..32 | MoltenVK 1.4.2 (Homebrew), Vulkan 1.4.357, macOS 26.7.3 (25G342) | `d42773d07` | 280/280 translated and valid | 175/219 pass, 39 skipped, 5 failed | 183/248 passed, 61 skipped, 4 failed (native); 214/248 passed, 30 skipped, 4 failed (`LEONIDA_W64_EMULATE=1`) | `cs_fma_fused` (known row), `cs_imgload_tfe`, `cs_imgload_d16_tfe` (pass with #291), `ps_imgatomic` flake (#543) | [local note](../gpu-test-results/AppleM5Pro.txt) | -| Apple M3 (10-core GPU), subgroup 32 | MoltenVK 1.4.2 (Homebrew), Vulkan 1.4.357, macOS 26.5.1 (25F80) | `626d1281a` | stops at `cs_dpp_cmp` on `main`; 297/297 translated and valid with #1444 | 183/231 pass, 43 skipped, 5 failed (with #1444) | 192/263 passed, 68 skipped, 3 failed (native); 225/263 passed, 35 skipped, 3 failed (`LEONIDA_W64_EMULATE=1`) | `cs_fma_fused` (known row), `ps_ssharp` (expected on Metal), `cs_imgatomic_ext` (fixed by #1518); check.py also `ps_ij_computed`, `ps_interp_f16_high` (no PerVertexKHR, #822); KosmicKrisp: 187/263, `cs_bvh`, `cs_bvh32` (#1212), `ps_cndmask_sign_mods`, `ps_valu16_mad_sel`, `cs_imgatomic_ext` | [local note](../gpu-test-results/AppleM3.txt) | +| Apple M3 (10-core GPU), subgroup 4..32 | MoltenVK 1.4.2 (Homebrew), Vulkan 1.4.357, macOS 26.5.1 (25F80) | `a73a57e13` | stops at `cs_dpp_cmp` on `main`; 301/301 translated and valid with #1444 | 185/234 pass, 44 skipped, 5 failed (with #1444) | 195/268 passed, 70 skipped, 3 failed (native); 229/268 passed, 36 skipped, 3 failed (`LEONIDA_W64_EMULATE=1`) | `cs_fma_fused` (#1724), `ps_ssharp` (#1774), `cs_imgatomic_ext` (#1518); check.py also `ps_ij_computed`, `ps_interp_f16_high` (#2176); validation clean but for the three documented messages; KosmicKrisp 190/268 (`cs_bvh`, `cs_bvh32`, `ps_cndmask_sign_mods`, `ps_valu16_mad_sel`: its `(NAN)` constants, #2229; `cs_imgatomic_ext`); llvmpipe 177/268 (`cs_imgatomic_ext`) | [local note](../gpu-test-results/AppleM3.txt) | | NVIDIA GeForce RTX 3080 (Ampere, GA102, 10 GB GDDR6X), subgroup 32..32 | NVIDIA 580.178.04, Vulkan 1.4.312, Ubuntu 26.04 LTS | `d2cd6c0` | not run | not run | 197/248 passed, 49 skipped, 2 failed (native); 229/248 passed, 17 skipped, 2 failed (`LEONIDA_W64_EMULATE=1`) | `cs_imgload_tfe`, `cs_imgload_d16_tfe` (#31; see #280) | [local note](../gpu-test-results/RTX3080.txt) | ## AMD Radeon RX 9070 GRE — 2026-11-23 diff --git a/gpu-test-results/AppleM3.txt b/gpu-test-results/AppleM3.txt index 1f1019257f..5d614fb347 100644 --- a/gpu-test-results/AppleM3.txt +++ b/gpu-test-results/AppleM3.txt @@ -1,78 +1,74 @@ -GPU: Apple M3 (Apple GPU, 10 cores), subgroup 32 -Driver: MoltenVK 1.4.2 (Homebrew bottle), Vulkan 1.4.357 -Subgroup: 32 (no native 64-wide, no mesh, no geometry stage, no PerVertexKHR) +GPU: Apple M3 (Apple GPU, 10 cores), subgroup 4..32 (MoltenVK), 32..32 (KosmicKrisp) +Driver: MoltenVK 1.4.2 (Homebrew bottle), Vulkan 1.4.357 (loader 1.4.363.0) +Subgroup: 4..32 (no native 64-wide, no mesh, no geometry stage, no PerVertexKHR) OS: macOS 26.5.1 (25F80), arm64 -Commit: 626d1281a (main, 2026-11-25) -Tools: llvm-mc 23.1.6 (Homebrew, AMDGPU target), SPIRV-Tools 1.4.363.0 (Homebrew), CMake 4.5.1, - Python 3.15.2 -build.py: on main it stops at cs_dpp_cmp.asm ("dpp variant of this instruction is not supported": no - llvm-mc encodes a VOPC compare in DPP form for gfx1013) and writes no SPIR-V, so check.py runs - nothing. With #1444 (TEST-BUILD-TEXT-ONLY) applied locally and not committed: 297 shaders, 297 - translated, 297 pass spirv-val (six mesh fixtures not built: no VK_EXT_mesh_shader). -check.py: 183 of 231 pass, 43 skipped, 5 failed (with #1444's build.py output) -run_gpu_tests.py: 192/263 passed, 68 skipped, 3 failed - 225/263 passed, 35 skipped, 3 failed (LEONIDA_W64_EMULATE=1) -ctest: 85/85 passed, 2 skipped (shader_library_corpus, vk_sync_validation) -Failed: cs_fma_fused: word 7 (f16) reads 0x00000000, want 0x00007351. The known MoltenVK 1.4.2 row - of docs/testing.md, and in the macOS job's EXPECTED_FAILURES. +Commit: a73a57e13 (main, 2026-11-26) +Tools: llvm-mc 23.1.6 (Homebrew, AMDGPU target), SPIRV-Tools v2026.4 (Homebrew), Apple clang 17.0.0, + CMake 4.5.1, Python 3.15.2 (also 3.12.16 for the semantic suite) + +MoltenVK 1.4.2, the default (the test programs load it directly): +run_gpu_tests.py: 277 shaders: 276 translated, 276 pass spirv-val (the one left is the computed I/J pair that + needs PerVertexKHR inputs) + native: 195/268 passed, 70 skipped, 3 failed + LEONIDA_W64_EMULATE=1: 229/268 passed, 36 skipped, 3 failed +build.py: on main it still stops at cs_dpp_cmp.asm (no llvm-mc encoding for a VOPC compare in DPP form). + With #1444 applied locally and not committed: 301 shaders, 301 translated, 301 pass spirv-val + (six mesh fixtures not built: no VK_EXT_mesh_shader). +check.py: 185 of 234 pass, 44 skipped, 5 failed (with #1444's build.py output) +ctest: 106/108 on main: a fresh build stops at generated/cs_null_descriptors.spv, so root_signature and + vk_null_descriptor are Not Run. With #2096: 108/108 passed, 3 skipped (shader_library_corpus, + vk_device_markers, vk_sync_validation). +Validation: the whole run_gpu_tests.py run under LEONIDA_VK_VALIDATION=1, through the loader with #2178, + filtering the three messages docs/testing.md lists for MoltenVK (06296, 08740, 09582): 195/268 + passed, the same three failures. The layer reports nothing else on any fixture. +Failed: cs_fma_fused: word 7 (f16) reads 0x00000000, want 0x00007351 (known row; #1724 takes the f16 + operands at run time and then passes). ps_ssharp: point bias +1: (0,0) reads (1.0, 0.0, 0.502, 0.502), want (0.502, 0.502, 0.502, - 0.502). In the macOS job's EXPECTED_FAILURES (the S#'s LOD bias, which a Metal sampler can't - take); the Apple M4 result in #564 reads the same pixel. - cs_imgatomic_ext: 6 of 64 sint words differ; first word 32 reads 0x0badf00d, want 0x00000101. - 0x0badf00d is the initial value of the swap row, so 6 sint words still hold it after the - image_atomic_swap; the volume keeps every fill, so none of the six 3D ops runs. Not - Mac-specific: it fails the same way on KosmicKrisp and llvmpipe (Mesa 26.3.1) on this machine, - passes at 367d91ef where it was added, and first fails at #939 (the volume UAV tag). #1518 adds - the tag to the fixture and it then passes on MoltenVK, KosmicKrisp and llvmpipe. -Repeats: the three fail the same way every time: 4 full native runs, 1 full LEONIDA_W64_EMULATE=1 run, - then 20 runs of each with --filter (20/20 failed, same words). cs_dpp_cmp passed 20/20. -check.py only: ps_ij_computed and ps_interp_f16_high report "vk_harness failed or returned no pixels": - the device has no PerVertexKHR inputs, as on the Apple M5 Pro. -Skipped: 33 "full 64-wide compute subgroups unavailable" (the wave64 compute tests), 5 mesh fixtures - (no VK_EXT_mesh_shader), 16 fixtures the d3d12_* tests run, and 14 others (see the run log). + 0.502). MoltenVK drops the sampler's mipLodBias on this GPU; #1774 applies it in the shader. + cs_imgatomic_ext: 6 of 64 sint words, first word 32 reads 0x0badf00d, want 0x00000101 (#1518). +check.py only: ps_ij_computed and ps_interp_f16_high: "vk_harness failed or returned no pixels" (no + PerVertexKHR inputs; #2176 takes the f16 interpolation fallback from the device). +DPP: cs_dpp, cs_dpp8, cs_dpp_bank, cs_dpp_bound, cs_dpp_cmp, cs_dpp_fi, cs_dpp_mask, cs_dpp_ops and + cs_dpp_row pass on MoltenVK 1.4.2 and KosmicKrisp, in run_gpu_tests.py and check.py (cs_dpp_w64 + skips: no 64-wide subgroup). That is a Mac run for docs/design.md's DPP row ("not yet run on a + Mac"); its hand-written FI=0 case with an absent source lane is still CPU-only. +Repeats: ps_imgatomic passed 30 of 30 runs on MoltenVK here (the M5/M5 Pro failure of docs/testing.md + does not reproduce on the M3). +Fuzzers: f32_fuzz 40 programs (seed 1): 38 match, 2 undefined in SPIR-V (Log2 of -0.0, InverseSqrt of + -4.0), the same on all three drivers. valu_fuzz --family mem: 40/40 on MoltenVK and KosmicKrisp. + valu_fuzz --family f16: 40/40 on KosmicKrisp, 39/40 on MoltenVK; the one mismatch is a -0 + product from v_mul_f16 read back as +0 (the known MoltenVK row: SPIRV-Cross's spvFMul is + fma(l, r, 0); SPIRV-Cross 300681bb makes it fma(l, r, -0.0), not yet in MoltenVK). KosmicKrisp (Mesa 26.3.1, Homebrew), same machine, commit and test programs, through the Vulkan loader (LEONIDA_VULKAN_LOADER=/opt/homebrew/opt/vulkan-loader/lib/libvulkan.1.dylib, VK_DRIVER_FILES=/opt/homebrew/share/vulkan/icd.d/kosmickrisp_mesa_icd.aarch64.json); subgroup 32..32: -run_gpu_tests.py: 187/263 passed, 71 skipped, 5 failed - 220/263 passed, 38 skipped, 5 failed (LEONIDA_W64_EMULATE=1) -check.py: 177 of 231 pass, 48 skipped (with #1444's build.py output) -ctest: 85/85 passed -check.py only: cs_fmt_all word 293: expected 0x80007c01, got 0x80007e00 (an f16 signalling NaN stored - quiet); it passes on MoltenVK, and run_gpu_tests.py does not run it yet (#800). -Failed: cs_bvh and cs_bvh32: out[3] reads 0x7fc00000 (2143289344), want 0xffffffff. The known - KosmicKrisp row of docs/testing.md (nir_to_msl prints a float-typed NaN-range constant as NAN). - cs_imgatomic_ext: the same words as on MoltenVK (#1518). - ps_cndmask_sign_mods: 4096/4096 pixels, (0,0) reads 0x7fc00000 0x7fc00000 0x80000001 0x7fc00000, - want 0xff800001 0x7f800001 0x80000001 0x7f800001. - ps_valu16_mad_sel: 4096/4096 pixels, (0,0) channel 2 reads 0x7fc00000, want 0xffffffff. - Both from 2026-11-23, both pass on MoltenVK and llvmpipe here, and both look like the measured - KosmicKrisp NaN canonicalization in docs/testing.md; check.py allows it for ps_nan_payload - only, and neither fixture is in that table yet. - cs_fma_fused passes on KosmicKrisp ("1/7 f32 fused, 6/7 split ... f16 exact"), and so do - ps_ssharp, cs_imgatomic and cs_imgatomic3d. +run_gpu_tests.py: 190/268 passed, 73 skipped, 5 failed + 224/268 passed, 39 skipped, 5 failed (LEONIDA_W64_EMULATE=1) +check.py: 179 of 234 pass, 49 skipped, 6 failed (with #1444's build.py output) +Failed: cs_bvh, cs_bvh32 (out[3] reads 0x7fc00000, want 0xffffffff), ps_cndmask_sign_mods, + ps_valu16_mad_sel, and in check.py cs_fmt_all word 293 (0x80007e00, want 0x80007c01): one cause, + emit_src_component in Mesa's src/kosmickrisp/compiler/msl_type_inference.c prints every + float-typed NaN constant as (NAN). The rows are in #2229. + cs_imgatomic_ext: as on MoltenVK (#1518). + cs_fma_fused passes with main's fixture; with #1724's (run-time f16 operands) word 7 reads + 0x00007352, want 0x00007351: the TwoSum of the round-to-odd FMA is reassociated, because + KosmicKrisp compiles every library with MTLMathModeFast and Metal ignores a per-op + "#pragma METAL fp math_mode(safe)" inside a fast library (measured in a standalone Metal kernel). +With two local Mesa patches (NaN constants printed by their bits; libraries compiled safe, with a fast +pragma on the ops that have no float controls), KosmicKrisp built from mesa-26.3.1: run_gpu_tests.py +194/268 passed, 1 failed (cs_imgatomic_ext); 228/268 emulated; check.py 184 of 234, 1 failed (the same); +#1724's cs_fma_fused passes. Same run time as the stock driver (45 s against 44 s, warm cache). -Open pull requests run here against the same test programs (MoltenVK = MVK, KosmicKrisp = KK): - #1444 (build.py text-only fixtures): build.py and check.py as above. - #1518 (cs_imgatomic_ext volume tag): passes on MVK, KK and llvmpipe. - #1724 (cs_fma_fused f16 operands at run time): passes on MVK 20/20, but on KK word 7 then - reads 0x00007352, want 0x00007351 (20/20), where main passes; llvmpipe passes either way. - #822 (check.py f16 interpolation fallback from the device): ps_interp_f16_high ok and - ps_ij_computed SKIP ("computed I/J pairs need PerVertexKHR inputs") on MVK. - #1426 (computed I/J under --bary-fallback): ps_ij_computed and ps_interp_f16_high still - "vk_harness failed" on MVK; the fallback needs a geometry stage, which Metal does not have. - #1212 and #137 (NaN-pattern constants in image_bvh): cs_bvh and cs_bvh32 pass on KK and MVK. - #1774 (--explicit-lod-bias, the S# LOD bias in the shader on MoltenVK): ps_ssharp passes on MVK; - with all of the above merged, MVK has no failure left. +llvmpipe (Mesa 26.3.1, Homebrew, LLVM 23.1.6, 128 bits), same machine, through the loader +(VK_DRIVER_FILES=/opt/homebrew/share/vulkan/icd.d/lvp_icd.aarch64.json); subgroup 4..4: +run_gpu_tests.py: 177/268 passed, 90 skipped, 1 failed + 212/268 passed, 55 skipped, 1 failed (LEONIDA_W64_EMULATE=1) +check.py: 120 of 234 pass, 113 skipped, 1 failed (with #1444's build.py output; most skips are "can't run + this shader at 32 lanes on request" and "subgroup 4 is narrower than 32 lanes") +Failed: cs_imgatomic_ext (#1518). +Fuzzers: valu_fuzz needs 32 lanes natively; with --emulate, f16 40/40. -All of them together, on main 57ba40bd6 with #1444, #1518, #1724, #822, #1212, #1673, #1657, #1412 and -#1375 merged (#822 and #1444 conflict in runtime/test/shaders/build.py: each adds a block at the same place, -kept both), test programs rebuilt from that tree: -MoltenVK: build.py 296/296 translated and valid; check.py 186 of 231 pass, 44 skipped, 1 failed; - run_gpu_tests.py 194/263 passed, 68 skipped, 1 failed (227/263 with LEONIDA_W64_EMULATE=1); - the one failure is ps_ssharp. -KosmicKrisp: check.py 180 of 231 pass, 47 skipped; run_gpu_tests.py 189/263 passed, 71 skipped, 3 failed - (222/263 emulated): cs_fma_fused (from #1724), ps_cndmask_sign_mods, ps_valu16_mad_sel; - check.py also cs_fmt_all. -ctest: 88/88 passed. Python: translator suite 489 files, 6292 tests, 0 failed; standard-library - loop 499 files, 0 failed; pytest files 1912 passed, 18 skipped, 0 failed. +Python on this machine: semantic suite 498 files, 6351 tests, 0 failed (Python 3.15.2 and 3.12.16); the +standard-library loop of the macOS CI job fails only tests/test_calibrated_texture_extra.py (#2101) and +tests/test_mod_pack_output_alias.py (#2175).