wayland/dma-buf: Use meta_renderer_native_send_modifiers
Do not send modifiers if meta_renderer_native_send_modifiers says not to (and we use scanout). Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2637>
This commit is contained in:
parent
00ffe0b454
commit
0b7de744a0
@ -154,8 +154,6 @@ should_send_modifiers (MetaBackend *backend)
|
|||||||
{
|
{
|
||||||
MetaRendererNative *renderer_native;
|
MetaRendererNative *renderer_native;
|
||||||
MetaGpuKms *gpu_kms;
|
MetaGpuKms *gpu_kms;
|
||||||
MetaKmsDevice *kms_device;
|
|
||||||
MetaKmsDeviceFlag flags;
|
|
||||||
|
|
||||||
if (!META_IS_BACKEND_NATIVE (backend))
|
if (!META_IS_BACKEND_NATIVE (backend))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -165,11 +163,7 @@ should_send_modifiers (MetaBackend *backend)
|
|||||||
if (!gpu_kms)
|
if (!gpu_kms)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
kms_device = meta_gpu_kms_get_kms_device (gpu_kms);
|
return meta_renderer_native_send_modifiers (renderer_native);
|
||||||
|
|
||||||
flags = meta_kms_device_get_flags (kms_device);
|
|
||||||
|
|
||||||
return !!(flags & META_KMS_DEVICE_FLAG_HAS_ADDFB2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gint
|
static gint
|
||||||
|
Loading…
Reference in New Issue
Block a user