drm/nouveau/kms/nv50: fix handling of gamma since atomic conversion
authorBen Skeggs <bskeggs@redhat.com>
Fri, 12 Jan 2018 07:05:33 +0000 (17:05 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 2 Feb 2018 05:24:07 +0000 (15:24 +1000)
commitf4778f08a038d48ab8528416a51bf7ad231f9cc1
tree19fe61d3191c05f81eb84ffca885045b116a93ff
parent90df522912ac1fa88836fa1b1b9fa102a48d1f33
drm/nouveau/kms/nv50: fix handling of gamma since atomic conversion

We've still been directly using the legacy crtc gamma_set() hook even
after conversion to atomic modesetting.

For userspace clients this was fine, however, fbcon will use the atomic
property when it's running on an atomic driver, which means we miss its
colormap updates - which is particularly bad for 8bpp framebuffers!

This commit converts the driver to use the atomic property + the helper
function implementing the legacy hook on top of atomic.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80675
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_display.c