1
0
Fork 0

wayland: Require ANDROID_native_fence_sync for enabling syncobj protocol

Mutter is currently enabling the protocol when the fence can't be
duplicated and it never signals the release of it (which is problematic
in some Mesa drivers like nouveau when used together with the nouveau
Vulkan driver because of the recent explicit sync support merge)

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3744>
This commit is contained in:
Echo J 2024-05-09 02:55:40 +03:00 committed by Marge Bot
parent 0388431b31
commit 003cb6d5ce

View file

@ -465,6 +465,15 @@ meta_wayland_drm_syncobj_manager_new (MetaWaylandCompositor *compositor,
g_assert (backend && egl && clutter_backend && cogl_context && egl_display);
if (!meta_egl_has_extensions (egl, egl_display, NULL,
"EGL_ANDROID_native_fence_sync",
NULL))
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
"Missing 'EGL_ANDROID_native_fence_sync'");
return NULL;
}
if (!meta_egl_query_display_attrib (egl, egl_display,
EGL_DEVICE_EXT, &attrib,
error))