mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
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;
|
||||
MetaGpuKms *gpu_kms;
|
||||
MetaKmsDevice *kms_device;
|
||||
MetaKmsDeviceFlag flags;
|
||||
|
||||
if (!META_IS_BACKEND_NATIVE (backend))
|
||||
return FALSE;
|
||||
@ -165,11 +163,7 @@ should_send_modifiers (MetaBackend *backend)
|
||||
if (!gpu_kms)
|
||||
return TRUE;
|
||||
|
||||
kms_device = meta_gpu_kms_get_kms_device (gpu_kms);
|
||||
|
||||
flags = meta_kms_device_get_flags (kms_device);
|
||||
|
||||
return !!(flags & META_KMS_DEVICE_FLAG_HAS_ADDFB2);
|
||||
return meta_renderer_native_send_modifiers (renderer_native);
|
||||
}
|
||||
|
||||
static gint
|
||||
|
Loading…
Reference in New Issue
Block a user