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)
commit3e407417b1928e020e234e5410137860181d0abe
treeecaf8181d86c77a6e9fbd1d9b54c04d51cbc0c84
parenta65511b1cd78e0a37b35af5737dd35cf0a5ae927
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