mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
video: s3c-fb: fix transparency length for pixel blending
Transparency length is fixed for pixel blending in order to support ARGB 8888 format. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
This commit is contained in:
parent
e78bb882bf
commit
4420dd2b30
1 changed files with 2 additions and 1 deletions
|
@ -621,7 +621,8 @@ static int s3c_fb_set_par(struct fb_info *info)
|
||||||
} else if (var->transp.length == 1)
|
} else if (var->transp.length == 1)
|
||||||
data |= WINCON1_BPPMODE_25BPP_A1888
|
data |= WINCON1_BPPMODE_25BPP_A1888
|
||||||
| WINCON1_BLD_PIX;
|
| WINCON1_BLD_PIX;
|
||||||
else if (var->transp.length == 4)
|
else if ((var->transp.length == 4) ||
|
||||||
|
(var->transp.length == 8))
|
||||||
data |= WINCON1_BPPMODE_28BPP_A4888
|
data |= WINCON1_BPPMODE_28BPP_A4888
|
||||||
| WINCON1_BLD_PIX | WINCON1_ALPHA_SEL;
|
| WINCON1_BLD_PIX | WINCON1_ALPHA_SEL;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue