drm: Add helper to implement legacy dirtyfb
Add an atomic helper to implement dirtyfb support. This is needed to support DSI command-mode panels with x11 userspace (ie. when we can't rely on pageflips to trigger a flush to the panel). v2: Modified the helper to use plane fb_damage_clips property and removed plane_state::dirty flag. v3: - Use uapi drm_mode_rect. - Support annotate flags. v4: Correct kernel doc. Signed-off-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Deepak Rawat <drawat@vmware.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
This commit is contained in:

committed by
Thomas Hellstrom

parent
f13ba9c21d
commit
b9fc5e01d1
@@ -67,6 +67,10 @@ struct drm_atomic_helper_damage_iter {
|
||||
void drm_plane_enable_fb_damage_clips(struct drm_plane *plane);
|
||||
void drm_atomic_helper_check_plane_damage(struct drm_atomic_state *state,
|
||||
struct drm_plane_state *plane_state);
|
||||
int drm_atomic_helper_dirtyfb(struct drm_framebuffer *fb,
|
||||
struct drm_file *file_priv, unsigned int flags,
|
||||
unsigned int color, struct drm_clip_rect *clips,
|
||||
unsigned int num_clips);
|
||||
void
|
||||
drm_atomic_helper_damage_iter_init(struct drm_atomic_helper_damage_iter *iter,
|
||||
const struct drm_plane_state *old_state,
|
||||
|
Reference in New Issue
Block a user