drm/nouveau: fix handling of fbcon colours in 8bpp
commit7de3643f938af910bef4c1f800176a3ebdc29502
authorBen Skeggs <bskeggs@redhat.com>
Sun, 3 Jan 2010 23:10:55 +0000 (4 09:10 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 11 Jan 2010 04:41:13 +0000 (11 14:41 +1000)
treec4355875502bcb83b55174843916160436f8cfb1
parentea911a1cf4f9c5bef18ff399ee2e2ec77792b650
drm/nouveau: fix handling of fbcon colours in 8bpp

Depending on the visual, the colours handed to us in fillrect() can either be
an actual colour, or an index into the pseudo-palette.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv04_fbcon.c
drivers/gpu/drm/nouveau/nv50_fbcon.c