fbdev: dpu20: blocking mode set condition is modified
authorhwangjae lee <hj-yo.lee@samsung.com>
Fri, 25 May 2018 05:26:45 +0000 (14:26 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:20 +0000 (20:22 +0300)
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 <hj-yo.lee@samsung.com>
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
drivers/video/fbdev/exynos/dpu20/decon_core.c

index ec9df371604f9abf6ab78107f3ee94ee0eacd141..5c449609a9b62e9597d2485729de845b58da2556 100644 (file)
@@ -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)) {