]> 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)
commitace7564fe7f03d4331a4ff660e0e50c7dd7e3f27
treeecaf8181d86c77a6e9fbd1d9b54c04d51cbc0c84
parentc0d5be933604e4efc52966f5e3ab599d8b408238
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