diff --git a/docs/gpu_test_results.md b/docs/gpu_test_results.md index c1503a06c1..c49ab5d181 100644 --- a/docs/gpu_test_results.md +++ b/docs/gpu_test_results.md @@ -10,6 +10,7 @@ post counts and pass/fail lines there, never game shaders, logs or private paths | AMD Radeon RX 9070 XT (RDNA4, GFX1201), subgroup 32..64 | AMD 26.11.2 (LLPC), Vulkan 1.4.359, Windows 11 26300.9550 | `5d74c27` | not run | not run | 224/241 passed, 16 skipped, 1 failed (native); 225/241 passed, 0 failed (`LEONIDA_W64_EMULATE=1`) | `ms_wave_info_s3`, every native run, flaky emulated (see below) | [local note](../gpu-test-results/RX9070XT.txt) | | 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 M4 (8-core GPU), subgroup 4..32 | MoltenVK 1.4.2 (Homebrew), Vulkan 1.4.357, macOS 27.3 | `1c93c86` | 280/280 translated and valid | 174/219 pass, 39 skipped, 6 failed | 183/248 passed, 61 skipped (native); 214/248 passed, 30 skipped (`LEONIDA_W64_EMULATE=1`) | `cs_fma_fused` (known row), `cs_imgload_tfe`, `cs_imgload_d16_tfe` (#31; pass with #291), `ps_ssharp` (deterministic, near old #7587) | [local note](../gpu-test-results/AppleM4.txt) | ## AMD Radeon RX 9070 GRE — 2026-11-23 diff --git a/gpu-test-results/AppleM4.txt b/gpu-test-results/AppleM4.txt new file mode 100644 index 0000000000..f6547ca25f --- /dev/null +++ b/gpu-test-results/AppleM4.txt @@ -0,0 +1,54 @@ +GPU: Apple M4 (Apple GPU, 8 cores, Metal family Apple7), subgroup 4..32 +Driver: MoltenVK 1.4.2 (Homebrew bottle), Vulkan 1.4.357 (loader), driverUUID 4d564b00-0000-28a2-1b03-020900000000 +Subgroup: 4..32 (default 32; subgroupSizeControl, requiredSubgroupSizeStages none; no native 64-wide, no mesh + (VK_EXT_mesh_shader absent), no geometry stage, no shaderFloat64, no PerVertexKHR; VK_KHR_shader_fma + present with shaderFmaFloat32/Float16 true) +OS: macOS 27.3 (26C5047e), arm64 +Commit: 1c93c8697078c3ccbd6f374caf5bb3ab0b6bc8e4 (main, 2026-11-24) +Tools: llvm-mc 23.1.6 (Homebrew, AMDGPU target), SPIRV-Tools v2026.4, Apple clang 21.0.0, + CMake 4.5.1, Python 3.13.14, Vulkan loader 1.4.357 (Homebrew vulkan-loader) +build.py: 280 shaders: 280 translated, 280 pass spirv-val (six mesh fixtures not built: no VK_EXT_mesh_shader) + wave64 VS/PS/GS on 32-wide subgroups: tier A: 11, tier B: 8, tier C: 13 +check.py: 174 of 219 pass, 39 skipped, 6 failed +run_gpu_tests.py: 257 shaders: 256 translated, 256 pass spirv-val + native: 183/248 passed, 61 skipped, 4 failed (two full runs, identical words) + LEONIDA_W64_EMULATE=1: 214/248 passed, 30 skipped, 4 failed +ctest: 72/72 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 (passes with MoltenVK main). Same on this machine under LEONIDA_FMA=khr despite + the device having shaderFmaFloat32/Float16: word 7 still 0x00000000, so the split is in + MoltenVK's own lowering, not in the emitted OpFmaKHR. + cs_imgload_tfe and cs_imgload_d16_tfe: vk_store_test reports "r32 uint (uint view): 0 bad, + texel(5,3) = 129 / r32 sint (sint view): 64 bad, texel(5,3) = 2071" where the expected sint is 71, + the 2000 the fixture seeds the tfe status VGPR with. That is #31; on a clean worktree at this main + with #291 (de87b1a) checked out, all four cs_imgload* fixtures pass (4/4), so #291 fixes them here + too, as on the Meteor Lake and 780M records. + ps_ssharp (point bias +1): (0,0) = (1.0, 0.0, 0.502, 0.502) where (0.502, 0.502, 0.502, 0.502) is + wanted: image_sample_lz through the descriptor path comes back as the red LOD-0 quadrant, where the + implicit sample in the same shader and the RDNA2 words want LOD 1. Deterministic: 3 single-filter + runs, same words each time. The closest old-repo row is #7587 (MoltenVK ignores sampler mip LOD + bias on explicit samples, old index #18); not looked into further. + ps_ij_computed and ps_interp_f16_high report "vk_harness failed or returned no pixels" in check.py + alone: no PerVertexKHR inputs; run_gpu_tests.py covers the device with its own --f16-interp-fallback, + which is why these two are not in the four failures above. +Skipped: native 61 = 16 documented "run by d3d12_*_test / w64_graphics.py" cases + (cs_buf_counter, cs_buf_typed, cs_m4_fill, cs_m4_indirect, ps_live_width, ps_m15, ps_m2, + ps_m2_array, ps_m2_literal, ps_m2_uoff, ps_m3, ps_m3_post, ps_m3_query, vs_m15, vs_m2, vs_m3) + + 31 that need a 64-wide compute subgroup, which this device does not have; + LEONIDA_W64_EMULATE=1 runs them and all 31 pass + + the four Float64 fixtures (no shaderFloat64: cs_div_fmas_f64, cs_f64_add, ps_f64_mods, + ps_f64_round), the six mesh fixtures and gs_tri (no VK_EXT_mesh_shader, no geometry stage), + ps_w64x_readlane and ps_vcmpx_forms (no 64-wide fragment subgroup can be required: sizes 4..32) + and ps_ij_computed (computed I/J pair: no PerVertexKHR, so --f16-interp-fallback refuses it). + emulated 30 = the same device-limit list minus the 31 wave64 compute cases it runs; the exact + names are those 30 plus ps_vcmpx_forms, which skips in both modes here. +Notes: +- Built native with cmake -S runtime -B runtime/build/mac -DVulkan_INCLUDE_DIR=/opt/homebrew/include; the + portable subset only (gta6rt and the shims are Windows-only), 72 ctest cases, all pass. +- run_gpu_tests.py's single untranslated shader is ps_ij_computed under --f16-interp-fallback + (wave64 tiers there: A: 1, C: 1); build.py's own 280/280 covers everything else. +- ps_imgatomic passes every run here; no #543 flake seen on this machine (M4, MoltenVK 1.4.2). +- The four failures match the M5 Pro record (#552) word for word on the same MoltenVK 1.4.2, and the pass/skip + counts (183/61 native, 214/30 emulated) are identical on 1c93c869 and d42773d07, so nothing Apple-specific + beyond ps_ssharp's determinism and the absence of the #543 flake. +- AI-assisted (omp).