-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Describe your PR, what does it fix/add?
Fixes crashes in Vulkan applications (Zed, WezTerm, etc.) on systems where the DRM driver doesn't support syncobj timelines, particularly Apple Silicon devices running Asahi Linux with the Honeykrisp driver.
The issue was that Hyprland advertised the linux-drm-syncobj-v1 protocol regardless of hardware support. When applications attempted to use explicit sync, they would crash with "Timeline failed importing" errors.
This PR adds DRM_CAP_SYNCOBJ_TIMELINE capability checking at two levels:
Protocol creation: Only advertise the protocol when hardware supports it
Timeline creation: Additional safety check when creating sync timelines
Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
No breaking compatibility - this only prevents advertising a protocol when the underlying hardware doesn't support it. Applications gracefully fall back to implicit sync when explicit sync isn't available.
Is it ready for merging, or does it need work?
Ready for merging. Tested on Fedora Asahi Remix with Apple M1 Pro. Applications that previously crashed now start successfully and run normally.