mirror of
https://github.com/brl/mutter.git
synced 2025-01-28 20:38:55 +00:00
kms/impl-device: Add addfb2_modifiers to MetaKmsDeviceCaps
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2359>
This commit is contained in:
parent
6c34c584c8
commit
11e6100226
@ -303,6 +303,7 @@ init_caps (MetaKmsImplDevice *impl_device)
|
||||
uint64_t cursor_width, cursor_height;
|
||||
uint64_t prefer_shadow;
|
||||
uint64_t uses_monotonic_clock;
|
||||
uint64_t addfb2_modifiers;
|
||||
|
||||
fd = meta_device_file_get_fd (priv->device_file);
|
||||
if (drmGetCap (fd, DRM_CAP_CURSOR_WIDTH, &cursor_width) == 0 &&
|
||||
@ -325,6 +326,11 @@ init_caps (MetaKmsImplDevice *impl_device)
|
||||
{
|
||||
priv->caps.uses_monotonic_clock = uses_monotonic_clock;
|
||||
}
|
||||
|
||||
if (drmGetCap (fd, DRM_CAP_ADDFB2_MODIFIERS, &addfb2_modifiers) == 0)
|
||||
{
|
||||
priv->caps.addfb2_modifiers = (addfb2_modifiers != 0);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -40,6 +40,7 @@ typedef struct _MetaKmsDeviceCaps
|
||||
|
||||
gboolean prefers_shadow_buffer;
|
||||
gboolean uses_monotonic_clock;
|
||||
gboolean addfb2_modifiers;
|
||||
} MetaKmsDeviceCaps;
|
||||
|
||||
typedef struct _MetaKmsProp MetaKmsProp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user