]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/imx: ipuv3-plane: disable local alpha for planes without alpha channel
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 18 Oct 2016 15:09:30 +0000 (17:09 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 20 Oct 2016 12:39:51 +0000 (14:39 +0200)
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>
drivers/gpu/drm/imx/ipuv3-plane.c

index e1ad844abafb5f9250c4597399d26eddf977af77..d5864ed4d772fdd2f4d5dfd0be9a13e372e27569 100644 (file)
@@ -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;
                }
        }