mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
drm: Allow drivers to modify plane_state in prepare_fb/cleanup_fb
The drivers have to modify the atomic plane state during the prepare_fb callback so they track allocations, reservations and dependencies for this atomic operation involving this fb. In particular, how else do we set the plane->fence from the framebuffer! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: dri-devel@lists.freedesktop.org Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20160818180017.20508-1-chris@chris-wilson.co.uk
This commit is contained in:
committed by
Daniel Vetter
parent
ee4d7899f6
commit
1832040d01
@@ -60,7 +60,7 @@ to_omap_plane_state(struct drm_plane_state *state)
|
||||
}
|
||||
|
||||
static int omap_plane_prepare_fb(struct drm_plane *plane,
|
||||
const struct drm_plane_state *new_state)
|
||||
struct drm_plane_state *new_state)
|
||||
{
|
||||
if (!new_state->fb)
|
||||
return 0;
|
||||
@@ -69,7 +69,7 @@ static int omap_plane_prepare_fb(struct drm_plane *plane,
|
||||
}
|
||||
|
||||
static void omap_plane_cleanup_fb(struct drm_plane *plane,
|
||||
const struct drm_plane_state *old_state)
|
||||
struct drm_plane_state *old_state)
|
||||
{
|
||||
if (old_state->fb)
|
||||
omap_framebuffer_unpin(old_state->fb);
|
||||
|
||||
Reference in New Issue
Block a user