]> Git Repo - linux.git/commit
drm/vc4: Use drm_atomic_helper_check_plane_state() to simplify the logic
authorBoris Brezillon <[email protected]>
Fri, 3 Aug 2018 09:22:29 +0000 (11:22 +0200)
committerBoris Brezillon <[email protected]>
Wed, 24 Oct 2018 16:05:21 +0000 (18:05 +0200)
commit58a6a36fe8e06199ff344fb95814af1d7ed71b35
tree93bbb20d6871968d25a3f9906f12c939feb8b98c
parent91b6da23cc78c84f22a620f34a01532fd7fbd7c8
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 <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/vc4/vc4_plane.c
This page took 0.051636 seconds and 4 git commands to generate.