drm/vc4: Move ->offsets[] adjustment out of setup_clipping_and_scaling()
authorBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 3 Aug 2018 09:22:30 +0000 (11:22 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 24 Oct 2018 16:14:20 +0000 (18:14 +0200)
commita65511b1cd78e0a37b35af5737dd35cf0a5ae927
tree8db697739480872df30cae864d46da9725eca1be
parent58a6a36fe8e06199ff344fb95814af1d7ed71b35
drm/vc4: Move ->offsets[] adjustment out of setup_clipping_and_scaling()

The offset adjustment depends on the framebuffer modified, so let's
just move this operation in the DRM_FORMAT_MOD_LINEAR case inside
vc4_plane_mode_set().

This we'll be able to fix offset calculation for
DRM_FORMAT_MOD_BROADCOM_VC4_T_TILED and DRM_FORMAT_MOD_BROADCOM_SANDXXX.

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