drm/radeon: Bypass hw lut's for > 8 bpc framebuffer scanout.
authorMario Kleiner <mario.kleiner.de@gmail.com>
Sat, 7 Jun 2014 01:38:11 +0000 (03:38 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Jun 2014 16:22:30 +0000 (12:22 -0400)
commit4366f3b5f5a971cf348c298716b2cb29aab6ef4f
tree84b5d4c51f934f314de9f2700359a6d6686e91d2
parent8bae42769da2346f7b3c783980f038826e09e84c
drm/radeon: Bypass hw lut's for > 8 bpc framebuffer scanout.

The hardware lut's only have 256 slots for indexing by a
8 bpc framebuffer. In 10 bpc scanout modes, framebuffer
color values would get truncated to their 8 msb's,
thereby losing the extra precision afforded by a 10 bpc
framebuffer.

To retain full precision, bypass the hw lut in 10 bpc
scanout mode.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/atombios_crtc.c
drivers/gpu/drm/radeon/evergreen_reg.h
drivers/gpu/drm/radeon/r500_reg.h
drivers/gpu/drm/radeon/radeon_display.c