]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm: Add helper to implement legacy dirtyfb
authorRob Clark <robdclark@gmail.com>
Thu, 31 May 2018 00:46:20 +0000 (17:46 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 5 Dec 2018 09:00:37 +0000 (10:00 +0100)
commitb9fc5e01d1ce78eb53fd4dedd51a1563e636eea2
treef3be8f1c2b0785dbd7458315b74fd88eea432714
parentf13ba9c21dc8275207f3705dba37fff947347dca
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>
drivers/gpu/drm/drm_damage_helper.c
include/drm/drm_damage_helper.h