]> 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)
commit8ba8e1c6fc7a7db833d7fa7e76841b61d5246085
tree8db697739480872df30cae864d46da9725eca1be
parent1a4cd2f5466c236a66395c9137f6594be0d2713a
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