[mutter] kms-impl-device-simple: Apply META_KMS_CONNECTOR_PROP_MAX_BPC
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] kms-impl-device-simple: Apply META_KMS_CONNECTOR_PROP_MAX_BPC
- Date: Fri, 19 Aug 2022 19:31:11 +0000 (UTC)
commit b6dbb686e2f3cb02b9386dd2dcae26112d427865
Author: Daniel van Vugt <daniel van vugt canonical com>
Date: Fri May 13 16:45:03 2022 +0800
kms-impl-device-simple: Apply META_KMS_CONNECTOR_PROP_MAX_BPC
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2412>
src/backends/native/meta-kms-impl-device-simple.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
---
diff --git a/src/backends/native/meta-kms-impl-device-simple.c
b/src/backends/native/meta-kms-impl-device-simple.c
index e4a8d5f1bf..648de51c65 100644
--- a/src/backends/native/meta-kms-impl-device-simple.c
+++ b/src/backends/native/meta-kms-impl-device-simple.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]