diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2021-02-22 15:17:56 +0100 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2021-02-23 08:54:22 +0100 |
commit | 820c1707177c6fe96beed7f8cc842a683afbf890 (patch) | |
tree | 7adf720db0e43379919b12d62475c6fc11af415a /include/drm/drm_gem_atomic_helper.h | |
parent | dc739820ff90acccd013f6bb420222978a982791 (diff) | |
download | linux-stable-820c1707177c6fe96beed7f8cc842a683afbf890.tar.gz linux-stable-820c1707177c6fe96beed7f8cc842a683afbf890.tar.bz2 linux-stable-820c1707177c6fe96beed7f8cc842a683afbf890.zip |
drm/gem: Move drm_gem_fb_prepare_fb() to GEM atomic helpers
The function drm_gem_fb_prepare_fb() is a helper for atomic modesetting,
but currently located next to framebuffer helpers. Move it to GEM atomic
helpers, rename it slightly and adopt the drivers. Same for the rsp
simple-pipe helper.
Compile-tested with x86-64, aarch64 and arm. The patch is fairly large,
but there are no functional changes.
v3:
* remove out-comented line in drm_gem_framebuffer_helper.h
(Maxime)
v2:
* rename to drm_gem_plane_helper_prepare_fb() (Daniel)
* add tutorial-style documentation
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210222141756.7864-1-tzimmermann@suse.de
Diffstat (limited to 'include/drm/drm_gem_atomic_helper.h')
-rw-r--r-- | include/drm/drm_gem_atomic_helper.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/drm/drm_gem_atomic_helper.h b/include/drm/drm_gem_atomic_helper.h index 7abf40bdab3d..cfc5adee3d13 100644 --- a/include/drm/drm_gem_atomic_helper.h +++ b/include/drm/drm_gem_atomic_helper.h @@ -10,6 +10,14 @@ struct drm_simple_display_pipe; /* + * Plane Helpers + */ + +int drm_gem_plane_helper_prepare_fb(struct drm_plane *plane, struct drm_plane_state *state); +int drm_gem_simple_display_pipe_prepare_fb(struct drm_simple_display_pipe *pipe, + struct drm_plane_state *plane_state); + +/* * Helpers for planes with shadow buffers */ |