diff options
author | Fancy Fang <chen.fang@nxp.com> | 2018-04-23 18:52:13 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:31:27 +0800 |
commit | eeb9072892e0e1084895a6de417e71bef14b7b50 (patch) | |
tree | fb1e4cbe903935aa29eb87fec275d1c05d5fd0e3 /drivers/video | |
parent | ff23a3b6515231f8b9c1d1e4cd03c635f275b99a (diff) |
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 <chen.fang@nxp.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/mxsfb.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |