From 2ebd87c630e39a8d33919c8143af540416eb30de Mon Sep 17 00:00:00 2001 From: hwangjae lee Date: Fri, 25 May 2018 14:26:45 +0900 Subject: [PATCH] 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 --- drivers/video/fbdev/exynos/dpu20/decon_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.20.1