]> xenbits.xensource.com Git - people/aperard/linux-chromebook.git/commitdiff
CHROMIUM: drm/exynos: Fix dithering.
authorHaixia Shi <hshi@chromium.org>
Fri, 7 Dec 2012 02:47:12 +0000 (18:47 -0800)
committerGerrit <chrome-bot@google.com>
Fri, 7 Dec 2012 09:49:50 +0000 (01:49 -0800)
There is only one dithering engine globally and it should always use
the settings for the root window.

BUG=chromium-os:37030
TEST=manually on daisy

Change-Id: Ic85805afc9410fc72be52da5916942b8187a07ed
Signed-off-by: Haixia Shi <hshi@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/39358
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
drivers/gpu/drm/exynos/exynos_drm_fimd.c

index 7bb76eab18c5e40a065d600f9af197f70f3024eb..e81ee85484330df1ea4102b4893b1554209848d5 100644 (file)
@@ -585,7 +585,9 @@ static void fimd_win_commit(void *ctx, int zpos)
        val |= WINCONx_ENWIN;
        writel(val, fimd_ctx->regs + WINCON(win));
 
-       mie_set_6bit_dithering(fimd_ctx, win);
+       /* only apply dithering on hardware window 0. */
+       if (win == 0)
+               mie_set_6bit_dithering(fimd_ctx, win);
 
        /* Enable DMA channel and unprotect windows */
        val = readl(fimd_ctx->regs + SHADOWCON);