drm/mgag200: Fix LUT programming for 16bpp
authorEgbert Eich <eich@suse.com>
Wed, 17 Jul 2013 13:07:27 +0000 (15:07 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 29 Jul 2013 23:44:42 +0000 (09:44 +1000)
commitde7500eafc96274654201bd585fb85e2814ef9b2
tree4e5a3782b903c7ebeb04011e6a0c8ec82dddbaab
parentda55839870263563cc70e700a7f58090a860576d
drm/mgag200: Fix LUT programming for 16bpp

Since there are only 32 (64) distinct color values for each color
in 16bpp Matrox hardware expects those in a 'dense' manner, ie in
the first 32 (64) entries of the respective color.

Signed-off-by: Egbert Eich <eich@suse.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/mgag200/mgag200_mode.c