]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit651e77e6a31aa50f62e7334ea6f5f0c85fbd0239
tree19fe61d3191c05f81eb84ffca885045b116a93ff
parent024003f3b8981a5f96a16c09ad268ab37c0ae5c7
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