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)
committerpopcornmix <popcornmix@gmail.com>
Fri, 9 Aug 2019 16:57:40 +0000 (18:57 +0200)
commitc3f1afdbcfef63fa720f6143f1ee417d8d87d4e7
tree13b839d7b1da8c3e38d3dc9a870173f15a3bbef2
parented9e15008174c71274bda7bfd6168ba8b6b0f5f8
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