drm/nouveau/disp/nv50-: fix center/aspect-corrected scaling
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 25 May 2019 22:41:49 +0000 (18:41 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 19 Jul 2019 06:26:50 +0000 (16:26 +1000)
commit533f4752407543f488a9118d817b8c504352b6fb
treea2cbeb73b6bf0051cfeb19dfc8f5b41ce123c8c5
parentf8d6211ac77f0d1f7aebc64e961dc28771ba0052
drm/nouveau/disp/nv50-: fix center/aspect-corrected scaling

Previously center scaling would get scaling applied to it (when it was
only supposed to center the image), and aspect-corrected scaling did not
always correctly pick whether to reduce width or height for a particular
combination of inputs/outputs.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110660
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv50/head.c