drm/exynos: decon5433: Fix per-plane global alpha for XRGB modes 31/180531/2
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 30 May 2018 10:44:25 +0000 (12:44 +0200)
committerInki Dae <inki.dae@samsung.com>
Thu, 31 May 2018 00:57:18 +0000 (00:57 +0000)
Set per-plane global alpha to maximum value to get proper blending of
XRGB together with ARGB planes. This fixes the strange order of
overlapping planes, especially when XRGB planes are displayed together
with ARGB planes.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I64d98f00b72047fe4b22b6d1b49e4222303be134

drivers/gpu/drm/exynos/exynos5433_drm_decon.c

index d34b14b22e002a6d03583783a4e63ddb53d92d01..b3fccb04689a48963d93887af52a6bc6ef65a0e1 100644 (file)
@@ -381,8 +381,8 @@ static void decon_win_commit(struct exynos_drm_crtc *crtc, unsigned int win)
                writel(val, ctx->addr + DECON_VIDOSDxB(win));
        }
 
-       val = VIDOSD_Wx_ALPHA_R_F(0x0) | VIDOSD_Wx_ALPHA_G_F(0x0) |
-               VIDOSD_Wx_ALPHA_B_F(0x0);
+       val = VIDOSD_Wx_ALPHA_R_F(0xff) | VIDOSD_Wx_ALPHA_G_F(0xff) |
+               VIDOSD_Wx_ALPHA_B_F(0xff);
        writel(val, ctx->addr + DECON_VIDOSDxC(win));
 
        val = VIDOSD_Wx_ALPHA_R_F(0x0) | VIDOSD_Wx_ALPHA_G_F(0x0) |