mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-07 09:46:07 -04:00
drm/gem: Export implementation of shadow-plane helpers
Export the implementation of duplicate, destroy and reset helpers for shadow-buffered plane state. Useful for drivers that subclass struct drm_shadow_plane_state. The exported functions are wrappers around plane-state implementation, but using them is the correct thing to do for drivers. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Melissa Wen <melissa.srw@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210705074633.9425-2-tzimmermann@suse.de
This commit is contained in:
@@ -53,6 +53,12 @@ to_drm_shadow_plane_state(struct drm_plane_state *state)
|
||||
return container_of(state, struct drm_shadow_plane_state, base);
|
||||
}
|
||||
|
||||
void __drm_gem_duplicate_shadow_plane_state(struct drm_plane *plane,
|
||||
struct drm_shadow_plane_state *new_shadow_plane_state);
|
||||
void __drm_gem_destroy_shadow_plane_state(struct drm_shadow_plane_state *shadow_plane_state);
|
||||
void __drm_gem_reset_shadow_plane(struct drm_plane *plane,
|
||||
struct drm_shadow_plane_state *shadow_plane_state);
|
||||
|
||||
void drm_gem_reset_shadow_plane(struct drm_plane *plane);
|
||||
struct drm_plane_state *drm_gem_duplicate_shadow_plane_state(struct drm_plane *plane);
|
||||
void drm_gem_destroy_shadow_plane_state(struct drm_plane *plane,
|
||||
|
||||
Reference in New Issue
Block a user