From: Fancy Fang Date: Mon, 23 Apr 2018 10:52:13 +0000 (+0800) Subject: MLK-18031 video: mxsfb: enable global alpha when grayscale is 0 for 32bpp format X-Git-Tag: C0P2-H0.0--20200415~58 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=dcb2eecd4635388fc138fb0c989d4b01ce94ae95;p=linux.git MLK-18031 video: mxsfb: enable global alpha when grayscale is 0 for 32bpp format For overlay framebuffer, when its grayscale is '0' and the format bpp is 32, enable the global alpha blending by default which can make the overlay fb can display the framebuffer content as long as it is unblanked. Signed-off-by: Fancy Fang (cherry picked from commit fede70b9066b03c24347619775fd7d007c5ddafb) --- diff --git a/drivers/video/fbdev/mxsfb.c b/drivers/video/fbdev/mxsfb.c index 98cd5e3f0105..5659ec2d18c4 100644 --- a/drivers/video/fbdev/mxsfb.c +++ b/drivers/video/fbdev/mxsfb.c @@ -1666,6 +1666,7 @@ static void overlayfb_setup(struct mxsfb_layer *ofb) break; case 32: /* ARGB8888 */ format = 0x0; + global_alpha_en = 1; break; default: return;