diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-08-03 11:22:29 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-10-24 18:05:21 +0200 |
commit | 58a6a36fe8e06199ff344fb95814af1d7ed71b35 (patch) | |
tree | 93bbb20d6871968d25a3f9906f12c939feb8b98c /drivers/gpu/drm/tilcdc | |
parent | 91b6da23cc78c84f22a620f34a01532fd7fbd7c8 (diff) | |
download | linux-stable-58a6a36fe8e06199ff344fb95814af1d7ed71b35.tar.gz linux-stable-58a6a36fe8e06199ff344fb95814af1d7ed71b35.tar.bz2 linux-stable-58a6a36fe8e06199ff344fb95814af1d7ed71b35.zip |
drm/vc4: Use drm_atomic_helper_check_plane_state() to simplify the logic
drm_atomic_helper_check_plane_state() takes care of checking the
scaling capabilities and calculating the clipped X/Y offsets for us.
Rely on this function instead of open-coding the logic.
Incidentally, it seems to fix a problem we had with negative X/Y
positioning of YUV planes.
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-3-boris.brezillon@bootlin.com
Diffstat (limited to 'drivers/gpu/drm/tilcdc')
0 files changed, 0 insertions, 0 deletions