diff options
author | Noralf Trønnes <noralf@tronnes.org> | 2020-05-09 16:16:12 +0200 |
---|---|---|
committer | Noralf Trønnes <noralf@tronnes.org> | 2020-05-26 13:31:01 +0200 |
commit | c9c03e3cf07299bf635e6fadad8d09106d26252f (patch) | |
tree | e4d0cee4d51506c18120b7c9e6bc7769b5c2911e /include/drm/drm_client.h | |
parent | drm/vc4: hdmi: Silence pixel clock error on -EPROBE_DEFER (diff) | |
download | linux-c9c03e3cf07299bf635e6fadad8d09106d26252f.tar.xz linux-c9c03e3cf07299bf635e6fadad8d09106d26252f.zip |
drm/client: Add drm_client_framebuffer_flush()
Some drivers need explicit flushing of buffer changes, add a function
that does that.
v2:
- Put all clip rect stuff inside if statement (Sam)
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200509141619.32970-4-noralf@tronnes.org
Diffstat (limited to 'include/drm/drm_client.h')
-rw-r--r-- | include/drm/drm_client.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_client.h b/include/drm/drm_client.h index eb259c2547af..565e83358d3c 100644 --- a/include/drm/drm_client.h +++ b/include/drm/drm_client.h @@ -154,6 +154,7 @@ struct drm_client_buffer { struct drm_client_buffer * drm_client_framebuffer_create(struct drm_client_dev *client, u32 width, u32 height, u32 format); void drm_client_framebuffer_delete(struct drm_client_buffer *buffer); +int drm_client_framebuffer_flush(struct drm_client_buffer *buffer, struct drm_rect *rect); void *drm_client_buffer_vmap(struct drm_client_buffer *buffer); void drm_client_buffer_vunmap(struct drm_client_buffer *buffer); |