diff options
author | Noralf Trønnes <noralf@tronnes.org> | 2019-01-15 05:36:39 +0100 |
---|---|---|
committer | Noralf Trønnes <noralf@tronnes.org> | 2019-01-17 10:56:45 +0100 |
commit | dbd62e16fd53d37093a4695692ceac1a470f0b3f (patch) | |
tree | 7737d78178617a284dfa8d7ce6e6e424914b829a /include/drm/drm_gem_framebuffer_helper.h | |
parent | 2de304b44d51b7d84d11b4d0942563fee5178c0e (diff) | |
download | lwn-dbd62e16fd53d37093a4695692ceac1a470f0b3f.tar.gz lwn-dbd62e16fd53d37093a4695692ceac1a470f0b3f.zip |
drm/gem-fb-helper: Add drm_gem_fb_create_with_dirty()
This adds a .fb_create helper that sets the .dirty callback to
drm_atomic_helper_dirtyfb().
v2: Improve docs (Daniel)
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190115043643.2364-2-noralf@tronnes.org
Diffstat (limited to 'include/drm/drm_gem_framebuffer_helper.h')
-rw-r--r-- | include/drm/drm_gem_framebuffer_helper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_gem_framebuffer_helper.h b/include/drm/drm_gem_framebuffer_helper.h index a38de7eb55b4..7f307e834eef 100644 --- a/include/drm/drm_gem_framebuffer_helper.h +++ b/include/drm/drm_gem_framebuffer_helper.h @@ -25,6 +25,9 @@ drm_gem_fb_create_with_funcs(struct drm_device *dev, struct drm_file *file, struct drm_framebuffer * drm_gem_fb_create(struct drm_device *dev, struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd); +struct drm_framebuffer * +drm_gem_fb_create_with_dirty(struct drm_device *dev, struct drm_file *file, + const struct drm_mode_fb_cmd2 *mode_cmd); int drm_gem_fb_prepare_fb(struct drm_plane *plane, struct drm_plane_state *state); |