drm/nouveau/kms/nv50-: Fix disabling dithering
authorLyude Paul <lyude@redhat.com>
Tue, 17 Mar 2020 18:54:06 +0000 (14:54 -0400)
committerLyude Paul <lyude@redhat.com>
Thu, 16 Jul 2020 22:16:31 +0000 (18:16 -0400)
commitfb2420b701edbf96c2b6d557f0139902f455dc2b
treed20b43b0d6ad0a84a9c50bf7420000f6788e3d35
parent9c8e9b790de33914e674035203461cb75c727e98
drm/nouveau/kms/nv50-: Fix disabling dithering

While we expose the ability to turn off hardware dithering for nouveau,
we actually make the mistake of turning it on anyway, due to
dithering_depth containing a non-zero value if our dithering depth isn't
also set to 6 bpc.

So, fix it by never enabling dithering when it's disabled.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Acked-by: Dave Airlie <airlied@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200627194657.156514-6-lyude@redhat.com
drivers/gpu/drm/nouveau/dispnv50/head.c