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:
Daniel van Vugt 2022-04-05 17:06:21 +08:00 committed by Marge Bot
parent 11e6100226
commit dd94c448e9

View File

@ -490,6 +490,9 @@ meta_kms_device_new (MetaKms *kms,
free (device->path);
device->path = data.out_path;
if (!device->caps.addfb2_modifiers)
device->flags |= META_KMS_DEVICE_FLAG_DISABLE_MODIFIERS;
return device;
}