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 <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2026-03-12 10:26:09 +02:00
parent a37b496737
commit cca2859fed

View file

@ -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,