drm/nouveau/kms/nv50: use INTERPOLATE_257_UNITY_RANGE LUT on newer chipsets
authorBen Skeggs <bskeggs@redhat.com>
Fri, 12 Jan 2018 09:02:05 +0000 (19:02 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 2 Feb 2018 05:24:07 +0000 (15:24 +1000)
commit90df522912ac1fa88836fa1b1b9fa102a48d1f33
treeed99fa529f60191febe6312b00a566ee4226784a
parente75182f68b7b3a073e33b89ee4c1688160755930
drm/nouveau/kms/nv50: use INTERPOLATE_257_UNITY_RANGE LUT on newer chipsets

For some reason forgotten by history, we've been using a 1025-entry LUT
mode, and sparsely filling it with the 256-entry LUT we're handed.

Until we land support for the full atomic colour management properties,
this commit switches to using the 257-entry mode to fix colour mapping
with depth 30 framebuffers.

Reported-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_display.c