kms/device: Disable modifiers when !DRM_CAP_ADDFB2_MODIFIERS
Fixes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2210 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2359>
This commit is contained in:
parent
11e6100226
commit
dd94c448e9
@ -490,6 +490,9 @@ meta_kms_device_new (MetaKms *kms,
|
|||||||
free (device->path);
|
free (device->path);
|
||||||
device->path = data.out_path;
|
device->path = data.out_path;
|
||||||
|
|
||||||
|
if (!device->caps.addfb2_modifiers)
|
||||||
|
device->flags |= META_KMS_DEVICE_FLAG_DISABLE_MODIFIERS;
|
||||||
|
|
||||||
return device;
|
return device;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user