[macOS] Apple M5 – "Could not find suitable device" (minLod, shaderBufferInt64Atomics, shaderCullDistance) #1448

Closed
opened 2026-11-26 09:56:56 +00:00 by github-bot · 4 comments
Owner

@⁠rpmdiffusion on GitHub · 2026-10-12 09:44 UTC · original

Build: KytyPS5-2026-10-12-dad900c (official macOS x86_64 release)
Hardware: MacBook Pro, Apple M5
macOS: 26.5.2 (25F84)
Game: Astro Bot (PPSA21564), v01.007.000

The emulator exits at startup before opening a window:

--- Error ---
Could not find suitable device:
Apple M5: image view minLod is not supported; shaderBufferInt64Atomics is not supported; shaderCullDistance is not supported in src/graphics/presentation/window/vulkanWindow.cpp:985

Same result with the bundled MoltenVK and with the latest MoltenVK release (copied into Contents/Frameworks and re-signed).

Could these features be made optional on macOS?
@⁠AN0DIN mentioned running on an Apple M5 with unmerged macOS fixes in #1145 — are those fixes planned for the official builds?

Full log:

Initialized: Config
Initialized: Log
Initialized: Timer
Initialized: Pthread
Initialized: Profiler
Initialized: Network
Initialized: Memory
Initialized: FileSystem
Initialized: Controller
Initialized: Audio
--- Build ---
Official build KytyPS5-2026-10-12-dad900c
--- Error ---
Could not find suitable device:
  Apple M5: image view minLod is not supported; shaderBufferInt64Atomics is not supported; shaderCullDistance is not supported in /Users/runner/work/KytyPS5/KytyPS5/src/graphics/presentation/window/vulkanWindow.cpp:985
**@⁠rpmdiffusion** on GitHub · 2026-10-12 09:44 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1448) Build: KytyPS5-2026-10-12-dad900c (official macOS x86_64 release) Hardware: MacBook Pro, Apple M5 macOS: 26.5.2 (25F84) Game: Astro Bot (PPSA21564), v01.007.000 The emulator exits at startup before opening a window: --- Error --- Could not find suitable device: Apple M5: image view minLod is not supported; shaderBufferInt64Atomics is not supported; shaderCullDistance is not supported in src/graphics/presentation/window/vulkanWindow.cpp:985 Same result with the bundled MoltenVK and with the latest MoltenVK release (copied into Contents/Frameworks and re-signed). Could these features be made optional on macOS? @⁠AN0DIN mentioned running on an Apple M5 with unmerged macOS fixes in #1145 — are those fixes planned for the official builds? Full log: ``` Initialized: Config Initialized: Log Initialized: Timer Initialized: Pthread Initialized: Profiler Initialized: Network Initialized: Memory Initialized: FileSystem Initialized: Controller Initialized: Audio --- Build --- Official build KytyPS5-2026-10-12-dad900c --- Error --- Could not find suitable device: Apple M5: image view minLod is not supported; shaderBufferInt64Atomics is not supported; shaderCullDistance is not supported in /Users/runner/work/KytyPS5/KytyPS5/src/graphics/presentation/window/vulkanWindow.cpp:985 ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:56:56 +00:00
Author
Owner

@⁠theantipopau on GitHub · 2026-10-12 10:23 UTC · original

Grounded look at vulkanWindow.cpp (main) — the three rejects come from hard check_feature calls, not macOS A/B branches:

  1. image view minLod (line 262) — this one already has a fix path: #1314 ("fall back to base-level remap when VK_EXT_image_view_min_lod is missing") makes it non-fatal. Once that merges, M5 stops failing on it. The Apple branch pattern at lines 256–268 (#if defined(__APPLE__) demoting colorWriteEnable/depthClipEnable to warnings) is the model to copy if the fallback needs a per-gpu toggle first.
  2. shaderBufferInt64Atomics (lines 292–293) — hardcoded VK_TRUE in RequiredVulkan12Features() (line 63). On MoltenVK this is off. Making it optional means an emitter fallback path for 64-bit buffer atomics (emulate with two 32-bit atomic exchanges / a compute-pass CAS loop), which is a bigger piece of work than a feature-gate flip — worth tracking separately if you want to file it.
  3. shaderCullDistance (line 305) — MoltenVK reports this as lazy-but-present on most drivers but it has been reported false on recent M-series toolchains; since the recompiler can fold cull-distance exports into clip distances, a macOS-only demotion like the two above is plausible and cheap to try.

Until 1–3 land, a practical check: this failure happens in the device-selection loop, so any GPU that MoltenVK exposes besides Apple M5 (there is none on unified memory MacBook Pros) would pass — i.e. there's no workaround config on that machine today. The @AN0DIN M5 reports from #1145 were almost certainly custom builds where these checks were already demoted locally.

**@⁠theantipopau** on GitHub · 2026-10-12 10:23 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1448#issuecomment-6122351234) Grounded look at `vulkanWindow.cpp` (main) — the three rejects come from hard `check_feature` calls, not macOS A/B branches: 1. `image view minLod` (line 262) — this one already has a fix path: [#1314](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1314) ("fall back to base-level remap when VK_EXT_image_view_min_lod is missing") makes it non-fatal. Once that merges, M5 stops failing on it. The Apple branch pattern at lines 256–268 (`#if defined(__APPLE__)` demoting `colorWriteEnable`/`depthClipEnable` to warnings) is the model to copy if the fallback needs a per-gpu toggle first. 2. `shaderBufferInt64Atomics` (lines 292–293) — hardcoded `VK_TRUE` in `RequiredVulkan12Features()` (line 63). On MoltenVK this is off. Making it optional means an emitter fallback path for 64-bit buffer atomics (emulate with two 32-bit atomic exchanges / a compute-pass CAS loop), which is a bigger piece of work than a feature-gate flip — worth tracking separately if you want to file it. 3. `shaderCullDistance` (line 305) — MoltenVK reports this as lazy-but-present on most drivers but it has been reported false on recent M-series toolchains; since the recompiler can fold cull-distance exports into clip distances, a macOS-only demotion like the two above is plausible and cheap to try. Until 1–3 land, a practical check: this failure happens in the *device-selection* loop, so any GPU that MoltenVK exposes besides Apple M5 (there is none on unified memory MacBook Pros) would pass — i.e. there's no workaround config on that machine today. The `@AN0DIN` M5 reports from #1145 were almost certainly custom builds where these checks were already demoted locally.
Author
Owner

@⁠rpmdiffusion on GitHub · 2026-10-12 10:47 UTC · original

Thanks a lot for the detailed breakdown! That makes sense.
I'm happy to test any build or PR on my M5 MacBook Pro (macOS 26.5.2) once #1314 or a fix for the other two checks is available — just ping me here.

**@⁠rpmdiffusion** on GitHub · 2026-10-12 10:47 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1448#issuecomment-6122728910) Thanks a lot for the detailed breakdown! That makes sense. I'm happy to test any build or PR on my M5 MacBook Pro (macOS 26.5.2) once #1314 or a fix for the other two checks is available — just ping me here.
Author
Owner

@⁠AN0DIN on GitHub · 2026-10-12 16:21 UTC · original

Hi, to clarify: #1145 doesn't fix this error, it only touches rect lists. What gets device selection past the M5 is #1083 (by @⁠juanfariasdev, not merged yet): on macOS it turns minLod, shaderBufferInt64Atomics and shaderCullDistance into warnings instead of hard rejects. #1314 only covers minLod, so the other two checks would still reject the M5.

The macOS fixes are on this branch: https://github.com/AN0DIN/kyty-ps5-apple-silicon/tree/emulator
It's upstream + #1083 + a few macOS/Rosetta fixes, including #1145 (diff against upstream: https://github.com/AN0DIN/kyty-ps5-apple-silicon/compare/main...emulator). My own GTA V builds are that branch plus GTA-specific patches; the device-selection code is the same, and on my M5 (MoltenVK 1.4.2) all three features are missing too: the emulator prints the three warnings and starts anyway.

I don't publish binaries, so you'd have to build it with "Building on macOS" in that branch's README. I've only tested GTA V, not Astro Bot, and Astro Bot may still fail later if it actually uses those features. If you try it, feedback on #1083 would probably help move it forward.

As for the official builds, that depends on the maintainers merging #1083, not on me.

**@⁠AN0DIN** on GitHub · 2026-10-12 16:21 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1448#issuecomment-6128235405) Hi, to clarify: #1145 doesn't fix this error, it only touches rect lists. What gets device selection past the M5 is #1083 (by @⁠juanfariasdev, not merged yet): on macOS it turns `minLod`, `shaderBufferInt64Atomics` and `shaderCullDistance` into warnings instead of hard rejects. #1314 only covers `minLod`, so the other two checks would still reject the M5. The macOS fixes are on this branch: https://github.com/AN0DIN/kyty-ps5-apple-silicon/tree/emulator It's upstream + #1083 + a few macOS/Rosetta fixes, including #1145 (diff against upstream: https://github.com/AN0DIN/kyty-ps5-apple-silicon/compare/main...emulator). My own GTA V builds are that branch plus GTA-specific patches; the device-selection code is the same, and on my M5 (MoltenVK 1.4.2) all three features are missing too: the emulator prints the three warnings and starts anyway. I don't publish binaries, so you'd have to build it with "Building on macOS" in that branch's README. I've only tested GTA V, not Astro Bot, and Astro Bot may still fail later if it actually uses those features. If you try it, feedback on #1083 would probably help move it forward. As for the official builds, that depends on the maintainers merging #1083, not on me.
Author
Owner

@⁠Nmzik on GitHub · 2026-10-18 16:36 UTC · original

Duplicate of #1068.

This is the macOS/MoltenVK device-selection failure already tracked in #1068: missing minLod, shaderBufferInt64Atomics, and shaderCullDistance. It occurs before guest execution. Please continue platform tests and discussion there; the hardware-specific logs here remain available.

**@⁠Nmzik** on GitHub · 2026-10-18 16:36 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1448#issuecomment-6252377618) Duplicate of #1068. This is the macOS/MoltenVK device-selection failure already tracked in #1068: missing `minLod`, `shaderBufferInt64Atomics`, and `shaderCullDistance`. It occurs before guest execution. Please continue platform tests and discussion there; the hardware-specific logs here remain available.
This discussion has been locked. Commenting is limited to contributors.
No milestone
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
github/KytyPS5--KytyPS5#1448
No description provided.