]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
offb: Fix setting of the pseudo-palette for >8bpp
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 28 Dec 2011 00:10:16 +0000 (00:10 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jan 2012 19:40:01 +0000 (11:40 -0800)
commitaef3cb6ca5ff47d3f36aa95ca73d370642b099aa
tree3cb57586caeae05f243888bfea7d8937eac442f6
parent9741d973f8cd41f14b8e811889611c65088ff151
offb: Fix setting of the pseudo-palette for >8bpp

commit 1bb0b7d21584b3f878e2bc880db62351ddee5185 upstream.

When using a >8bpp framebuffer, offb advertises truecolor, not directcolor,
and doesn't touch the color map even if it has a corresponding access method
for the real hardware.

Thus it needs to set the pseudo-palette with all 3 components of the color,
like other truecolor framebuffers, not with copies of the color index like
a directcolor framebuffer would do.

This went unnoticed for a long time because it's pretty hard to get offb
to kick in with anything but 8bpp (old BootX under MacOS will do that and
qemu does it).

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/video/offb.c