]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Prefer PPF over TPZ when dst >= 2/3 src
authorBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 9 Nov 2018 10:26:33 +0000 (11:26 +0100)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 9 Nov 2018 14:30:45 +0000 (15:30 +0100)
commit38bb031580045032e7f78bb6ce66e3bcba492aa5
tree6a11d8e5802173bc18f38fd296f8f85f97fafbc9
parentc28c7817c938887863db6bf90c0b2e684441a216
drm/vc4: Prefer PPF over TPZ when dst >= 2/3 src

The HVS spec recommends using PPF when the downscaling ratio is
between 2/3 and 1. Let's modify vc4_get_scaling_mode() to follow this
recommendation.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20181109102633.32603-2-boris.brezillon@bootlin.com
drivers/gpu/drm/vc4/vc4_plane.c