renderer/native: Look up prefers-shadow cap via MetaKmsDevice

This eliminates the second last user of drmGetCap() from outside of
MetaKmsImplDevice.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1828>
This commit is contained in:
Jonas Ådahl
2021-03-29 11:48:59 +02:00
parent 93f9c99cc5
commit 86c4369f41
5 changed files with 21 additions and 20 deletions

View File

@ -121,6 +121,12 @@ meta_kms_device_get_cursor_size (MetaKmsDevice *device,
}
}
gboolean
meta_kms_device_prefers_shadow_buffer (MetaKmsDevice *device)
{
return device->caps.prefers_shadow_buffer;
}
GList *
meta_kms_device_get_connectors (MetaKmsDevice *device)
{