kms-impl-device-simple: Apply META_KMS_CONNECTOR_PROP_MAX_BPC
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2412>
This commit is contained in:
parent
0cc4815837
commit
b6dbb686e2
1 changed files with 16 additions and 0 deletions
|
@ -250,6 +250,22 @@ process_connector_update (MetaKmsImplDevice *impl_device,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (connector_update->max_bpc.has_update)
|
||||
{
|
||||
meta_topic (META_DEBUG_KMS,
|
||||
"[simple] Setting max BPC to %u on connector %u (%s)",
|
||||
(unsigned int) connector_update->max_bpc.value,
|
||||
meta_kms_connector_get_id (connector),
|
||||
meta_kms_impl_device_get_path (impl_device));
|
||||
|
||||
if (!set_connector_property (impl_device,
|
||||
connector,
|
||||
META_KMS_CONNECTOR_PROP_MAX_BPC,
|
||||
connector_update->max_bpc.value,
|
||||
error))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue