diff options
author | Brian Masney <masneyb@onstation.org> | 2019-05-31 11:46:14 +0200 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2019-06-25 14:29:59 +0200 |
commit | 648fdc3f6475d96de287a849a31d89e79ba7669c (patch) | |
tree | 493358b6e98657b959248cc4f5e13d232b13c60d /drivers/gpu/drm/msm/msm_fb.c | |
parent | drm/msm/a3xx: remove TPL1 regs from snapshot (diff) | |
download | linux-648fdc3f6475d96de287a849a31d89e79ba7669c.tar.xz linux-648fdc3f6475d96de287a849a31d89e79ba7669c.zip |
drm/msm: add dirty framebuffer helper
Use drm_atomic_helper_dirtyfb() as the dirty callback in the
msm_framebuffer_funcs struct. Call drm_plane_enable_fb_damage_clips()
when the planes are initialized in mdp4, mdp5, and dpu1.
Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/gpu/drm/msm/msm_fb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_fb.c b/drivers/gpu/drm/msm/msm_fb.c index 136058978e0f..8624a8e4025f 100644 --- a/drivers/gpu/drm/msm/msm_fb.c +++ b/drivers/gpu/drm/msm/msm_fb.c @@ -16,6 +16,7 @@ */ #include <drm/drm_crtc.h> +#include <drm/drm_damage_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_probe_helper.h> @@ -35,6 +36,7 @@ static struct drm_framebuffer *msm_framebuffer_init(struct drm_device *dev, static const struct drm_framebuffer_funcs msm_framebuffer_funcs = { .create_handle = drm_gem_fb_create_handle, .destroy = drm_gem_fb_destroy, + .dirty = drm_atomic_helper_dirtyfb, }; #ifdef CONFIG_DEBUG_FS |