summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/imx
diff options
context:
space:
mode:
authorPhilipp Zabel2016-10-18 17:09:30 +0200
committerPhilipp Zabel2016-10-20 14:39:51 +0200
commit86126748cd5063aa888ce252f16b89b35e7d4707 (patch)
tree4d3920b43befbb74faacae329bab89234ec7e0de /drivers/gpu/drm/imx
parentdrm/imx: ipuv3-plane: make sure x/y offsets are even in case of chroma subsam... (diff)
downloadkernel-qcow2-linux-86126748cd5063aa888ce252f16b89b35e7d4707.tar.gz
kernel-qcow2-linux-86126748cd5063aa888ce252f16b89b35e7d4707.tar.xz
kernel-qcow2-linux-86126748cd5063aa888ce252f16b89b35e7d4707.zip
drm/imx: ipuv3-plane: disable local alpha for planes without alpha channel
Without this patch, after enabling the overlay plane with an RGBA framebuffer, switching to a framebuffer without alpha channel would cause the plane to vanish, since the pixel local alpha is constant zero in that case. Disable local alpha again when setting an opaque framebuffer. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/imx')
-rw-r--r--drivers/gpu/drm/imx/ipuv3-plane.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/imx/ipuv3-plane.c b/drivers/gpu/drm/imx/ipuv3-plane.c
index e1ad844abafb..d5864ed4d772 100644
--- a/drivers/gpu/drm/imx/ipuv3-plane.c
+++ b/drivers/gpu/drm/imx/ipuv3-plane.c
@@ -437,6 +437,7 @@ static void ipu_plane_atomic_update(struct drm_plane *plane,
ipu_dp_set_global_alpha(ipu_plane->dp, false, 0, false);
break;
default:
+ ipu_dp_set_global_alpha(ipu_plane->dp, true, 0, true);
break;
}
}