]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Fix X/Y positioning of planes using T_TILES modifier
authorBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 3 Aug 2018 09:22:31 +0000 (11:22 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 24 Oct 2018 16:14:33 +0000 (18:14 +0200)
commitb6a8b2263aa1882c3d0f6f3753b4cfc2dafbfd64
treeecaf8181d86c77a6e9fbd1d9b54c04d51cbc0c84
parent8ba8e1c6fc7a7db833d7fa7e76841b61d5246085
drm/vc4: Fix X/Y positioning of planes using T_TILES modifier

X/Y positioning of T-format buffers is quite tricky and the current
implementation was failing to position a plane using this format
correctly when the CRTC X, Y or both X and Y offsets were negative.
It was also failing when the SRC X/Y offsets were != 0.

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-5-boris.brezillon@bootlin.com
drivers/gpu/drm/vc4/vc4_plane.c