mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
video: tegra: fill in transparency info in 32bpp FB mode
also remove incorrect support for 24bpp Change-Id: Ic6528760bf2585ca5e7a2a68a200e3346694505e Signed-off-by: Erik Gilling <konkers@android.com>
This commit is contained in:
@@ -124,13 +124,14 @@ static int tegra_fb_set_par(struct fb_info *info)
|
||||
/* we only support RGB ordering for now */
|
||||
switch (var->bits_per_pixel) {
|
||||
case 32:
|
||||
case 24:
|
||||
var->red.offset = 0;
|
||||
var->red.length = 8;
|
||||
var->green.offset = 8;
|
||||
var->green.length = 8;
|
||||
var->blue.offset = 16;
|
||||
var->blue.length = 8;
|
||||
var->transp.offset = 24;
|
||||
var->transp.length = 8;
|
||||
tegra_fb->win->fmt = TEGRA_WIN_FMT_R8G8B8A8;
|
||||
break;
|
||||
case 16:
|
||||
|
||||
Reference in New Issue
Block a user