vulkan: fix black screen on Apple M4 (MoltenVK) #398
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!398
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/398/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@nacimoualla on GitHub · 2026-08-29 13:35 UTC · original
nacimoualla:macos/fix-black-screen→main· +1521 −51 · 105 files · 13 commits · closed without mergingFollow-up to #394. JoJo's Bizarre Adventure: All-Star Battle R (PPSA04220) booted to a black window at 60fps after the Bandai logo on Apple M4/MoltenVK 1.4.2.
Root causes (MoltenVK on Apple M4):
shaderCullDistance(VkPhysicalDeviceFeatures::shaderCullDistance) is not supported, but the emulator required it:VulkanFindPhysicalDevice:282skipped Apple M4 →Could not find suitable deviceat1017VulkanCreateDevice:594EXIT_NOT_IMPLEMENTEDVulkanCreateDevice:621device_features.shaderCullDistance = VK_TRUE→vkCreateDevice→VK_ERROR_FEATURE_NOT_PRESENT(39th flag,[mvk-error] Metal does not support disabling primitive restartis a separate warning but the same flag index)Made optional on
__APPLE__at all three places, mirroring existing handling fordepthBounds.primitiveRestartEnable = VK_FALSEatshaders.cpp:654is not supported on Metal:[mvk-warn] VK_ERROR_FEATURE_NOT_PRESENT: Metal does not support disabling primitive restart.Forced to
VK_TRUEon Apple.Result: PPSA04220 now progresses past
vkCreateDeviceand renders its full PS5 GPU command stream (28M cmds, sound, 60fps) instead of exiting at device creation. Black screen after the logo is the next scene loading, not a device failure.Testing: Apple M4, macOS 26.2, MoltenVK 1.4.2, x86_64 under Rosetta 2, Qt 6.11.2 universal,
--present-mode Fifonow shows stableBANDAI NAMCO→ black → next scene. Nomvk-warnfor primitive restart after the patch.Built on top of
mainatdc89912(the cleaned #394), not on the reverted import button. Ready for review as a focused follow-up.@nacimoualla on GitHub · 2026-08-29 14:48 UTC · original
@Nmzik just to say it this pr is not finished yet It's still WIP and it's only for Mac users
@Nmzik on GitHub · 2026-08-29 14:55 UTC · original
@nacimoualla Sure. Could you please cleanup your PR first? It has commited changes from old PR
@nacimoualla on GitHub · 2026-08-29 14:57 UTC · original
@Nmzik yeah sure
@nacimoualla on GitHub · 2026-08-29 14:58 UTC · original
@Nmzik hey can you tell me did anyone tried to run jojo game in Mac OS?
@Nmzik on GitHub · 2026-08-29 15:02 UTC · original
@nacimoualla No idea. Just my 5 cents: it’s better to start with simple 2D games and gradually move to 3D games. That way, it’ll be easier for you. But since the backend is already working on Linux and Windows, it should be pretty easy to get the games running, at least in some half-corrected form. On Windows/Linux jojo is running fine
@nacimoualla on GitHub · 2026-08-29 15:04 UTC · original
I got a 3d game to show the bandai company logo now I am trying to make it work
@nacimoualla on GitHub · 2026-08-29 19:04 UTC · original
@Nmzik I got JoJo's Bizarre Adventure: All-Star Battle R to boot into menu after a lot of work lol
@Nmzik on GitHub · 2026-08-30 23:38 UTC · original
@nacimoualla please do full clean up. It is impossible to merge (a lot of AI logs) + redundant code
Pull request closed