Fix colors for Mach64
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 2 Jun 2010 15:09:04 +0000 (11:09 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 2 Jun 2010 21:41:12 +0000 (14:41 -0700)
commita57ee627499d116f6872a5634ea4f015da0eacd2
treeecda5a9195f665b99b76c1c26eb16b367438d7da
parentaef4b9aaae1decc775778903922bd0075cce7a88
Fix colors for Mach64

Use the same color-calculating algorithm as in atyfb_imageblit in this
driver or in generic cfb_fillrect.

This patch fixes bad colors when using an accelerator in 15-bit and
16-bit modes.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/aty/mach64_accel.c