mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-07 14:18:32 +02:00
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:
parent
a37b496737
commit
cca2859fed
1 changed files with 5 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue