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:
parent
0388431b31
commit
003cb6d5ce
1 changed files with 9 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue