Commit 619958e3 authored by Philipp Zabel's avatar Philipp Zabel Committed by Daniel Stone
Browse files

compositor-drm: fix drm_output_prepare_overlay_view for non-matching format

Add missing drm_plane_state_put_back in case the view's pixel format
does not match any of the tested plane's supported formats.
Signed-off-by: Philipp Zabel's avatarPhilipp Zabel <>
parent 1ca025cc
......@@ -3234,8 +3234,11 @@ drm_output_prepare_overlay_view(struct drm_output_state *output_state,
if (j != p->formats[i].count_modifiers)
if (i == p->count_formats)
if (i == p->count_formats) {
state = NULL;
if (availability == NO_PLANES_WITH_FORMAT)
availability = NO_PLANES_ACCEPTED;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment