From 0cc48158374c50bfb4f4fe3944b661f1c9e96363 Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Fri, 13 May 2022 16:31:30 +0800 Subject: [PATCH] kms-impl-device-atomic: Apply META_KMS_CONNECTOR_PROP_MAX_BPC Part-of: --- .../native/meta-kms-impl-device-atomic.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/backends/native/meta-kms-impl-device-atomic.c b/src/backends/native/meta-kms-impl-device-atomic.c index b1925f984..7b7f7fc1f 100644 --- a/src/backends/native/meta-kms-impl-device-atomic.c +++ b/src/backends/native/meta-kms-impl-device-atomic.c @@ -218,6 +218,22 @@ process_connector_update (MetaKmsImplDevice *impl_device, return FALSE; } + if (connector_update->max_bpc.has_update) + { + meta_topic (META_DEBUG_KMS, + "[atomic] 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 (!add_connector_property (impl_device, + connector, req, + META_KMS_CONNECTOR_PROP_MAX_BPC, + connector_update->max_bpc.value, + error)) + return FALSE; + } + return TRUE; }