From cca2859fed9babaa13ef139bfc6f45da9e3e1b1e Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Thu, 12 Mar 2026 10:26:09 +0200 Subject: [PATCH] backend-drm: Inform user that we might be outside max_bpc range This informs users that the max_bpc set in the ini file might be outside of allowed/permited range. Signed-off-by: Marius Vlad --- libweston/backend-drm/kms.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libweston/backend-drm/kms.c b/libweston/backend-drm/kms.c index b011ba981..5b48bd827 100644 --- a/libweston/backend-drm/kms.c +++ b/libweston/backend-drm/kms.c @@ -1194,6 +1194,11 @@ drm_connector_set_max_bpc(struct drm_connector *connector, assert(a <= b); max_bpc = MAX(a, MIN(output->max_bpc, b)); + if (max_bpc != output->max_bpc) + weston_log("Warning: user-specified 'max_bpc' %u, " + "outside of range: [%"PRIu64", %"PRIu64"]. " + "Using 'max_bpc': %"PRIu64"\n", output->max_bpc, + a, b, max_bpc); } return connector_add_prop(req, connector,