]> git.baikalelectronics.ru Git - kernel.git/commit
drm/plane-helper: Add drm_plane_helper_check_state()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 8 Aug 2016 07:55:10 +0000 (10:55 +0300)
committerSean Paul <seanpaul@chromium.org>
Mon, 8 Aug 2016 18:19:45 +0000 (14:19 -0400)
commit8536c5838b868e330a6ff38c40063f4bed1ea863
tree780d449387d54ad0a8bc09fc4d390d7f4fc7d56f
parente9d2a6413cea162982a2c978480344b88b491db0
drm/plane-helper: Add drm_plane_helper_check_state()

Add a version of drm_plane_helper_check_update() which takes a plane
state instead of having the caller pass in everything.

And to reduce code duplication, let's reimplement
drm_plane_helper_check_update() in terms of the new function, by
having a tempororary plane state on the stack.

v2: Add a note that the functions modifies the state (Chris)
v3: Fix drm_plane_helper_check_update() y coordinates (Daniel Kurtz)

Cc: Daniel Kurtz <djkurtz@chromium.org>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org> (v2)
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1470642910-14073-1-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/drm_plane_helper.c
include/drm/drm_plane_helper.h