]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc0d5be933604e4efc52966f5e3ab599d8b408238
tree8db697739480872df30cae864d46da9725eca1be
parentc6d31a7c33d948c27848c67566b2dc3fe8ae95fe
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