]> git.baikalelectronics.ru Git - kernel.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)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 3 Jan 2012 01:09:25 +0000 (12:09 +1100)
commitd9e65ccc243aec79ee6f13ff70c44f60ab945210
tree5d2d4b9402e1ef5a3e403b0280a4be8a864694a4
parent27651cd99315b6ce5dc6774d5f332efac3084de0
offb: Fix setting of the pseudo-palette for >8bpp

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>
CC: stable@kernel.org
drivers/video/offb.c