MLK-17274: drm: imx: dcss: use_global_alpha not working if channel
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Wed, 20 Dec 2017 13:13:33 +0000 (15:13 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:52:05 +0000 (14:52 -0500)
already enabled

If the channel is already enabled, or it doesn't need a mode set, then
the dcss_dtg_global_alpha_changed() will always return false for formats
with per-pixel alpha. Hence, the plane will not be updated. This patch
removes the check for image format and the check will be done for all
image formats.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/imx/dcss/dcss-dtg.c

index b3b9fc8..cf87df3 100644 (file)
@@ -309,8 +309,7 @@ bool dcss_dtg_global_alpha_changed(struct dcss_soc *dcss, int ch_num,
        if (ch_num)
                return false;
 
-       return dcss_dtg_global_alpha_needed(pix_format) &&
-              (alpha != dtg->alpha || use_global_alpha != dtg->use_global);
+       return alpha != dtg->alpha || use_global_alpha != dtg->use_global;
 }
 EXPORT_SYMBOL(dcss_dtg_global_alpha_changed);