drm/nouveau/kms/nv50-: Fix disabling dithering
authorLyude Paul <lyude@redhat.com>
Tue, 17 Mar 2020 18:54:06 +0000 (14:54 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:23:36 +0000 (08:23 +0200)
commitbef697bb84db5f63f5d2a2dacb4e5407d09163d4
tree401bcee64dbd70091d7a4f1feb99a8e9eeba5af0
parent03b28cfe00fee18bd62b41f293d64457e47eb437
drm/nouveau/kms/nv50-: Fix disabling dithering

[ Upstream commit fb2420b701edbf96c2b6d557f0139902f455dc2b ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/nouveau/dispnv50/head.c