drm/nouveau/kms/tu102-: disable input lut when input is already FP16
authorBen Skeggs <bskeggs@redhat.com>
Wed, 29 May 2019 05:44:57 +0000 (15:44 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2019 16:59:12 +0000 (18:59 +0200)
commitecce6020a0527642ecced073b126cba1cf99c2e5
treecd3fbe80167451ba7eedd0727fa783e4f2c61452
parent6ad134a3308353072ac634906fe16fe2059ae73f
drm/nouveau/kms/tu102-: disable input lut when input is already FP16

[ Upstream commit 1e339ab2ac3c769c1b06b9fb7d532f8495ebc56d ]

On Turing, an input LUT is required to transform inputs in fixed-point
formats to FP16 for the internal display pipe.  We provide an identity
mapping whenever a window is enabled for this reason.

HW has error checks to ensure when the input is already FP16, that the
input LUT is also disabled.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/nouveau/dispnv50/wndw.c