From: hwangjae lee Date: Fri, 25 May 2018 05:26:45 +0000 (+0900) Subject: fbdev: dpu20: blocking mode set condition is modified X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4c3d71e83367e3c0b1b4326085217311fb1ecc79;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git fbdev: dpu20: blocking mode set condition is modified In the past, it was possible to set a blocking area in a bottom window if the top window plane alpha value was 0. In this case, the top window becomes transparent, and the blocking area of the window looks black. So it is modified that when the top window plane alpha value was zero, blocking area isn't set in the bottom window. Change-Id: I2340369331082c939f4d7013c002452affd836bc Signed-off-by: hwangjae lee Signed-off-by: ChiHun Won --- diff --git a/drivers/video/fbdev/exynos/dpu20/decon_core.c b/drivers/video/fbdev/exynos/dpu20/decon_core.c index ec9df371604f..5c449609a9b6 100644 --- a/drivers/video/fbdev/exynos/dpu20/decon_core.c +++ b/drivers/video/fbdev/exynos/dpu20/decon_core.c @@ -1096,7 +1096,7 @@ static int decon_find_biggest_block_rect(struct decon_device *decon, continue; /* If top window has plane alpha, blocking mode not appliable */ - if ((config->plane_alpha < 255) && (config->plane_alpha > 0)) + if ((config->plane_alpha < 255) && (config->plane_alpha >= 0)) continue; if (is_decon_opaque_format(config->format)) {