drm/vmwgfx: Enable FB_DAMAGE_CLIPS property for SOU primary plane
authorDeepak Rawat <drawat@vmware.com>
Wed, 8 Aug 2018 22:41:56 +0000 (15:41 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 5 Dec 2018 09:00:42 +0000 (10:00 +0100)
SOU primary plane now support damage clips, enable it for user-space.

Signed-off-by: Deepak Rawat <drawat@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c

index 5a193eb6c4b897205e43b8fdcdd1011dc15e8df6..7a1187e56ce66e7f7585c886e7caf5ceb83d0b5b 100644 (file)
@@ -29,6 +29,7 @@
 #include <drm/drm_plane_helper.h>
 #include <drm/drm_atomic.h>
 #include <drm/drm_atomic_helper.h>
+#include <drm/drm_damage_helper.h>
 
 
 #define vmw_crtc_to_sou(x) \
@@ -908,6 +909,7 @@ static int vmw_sou_init(struct vmw_private *dev_priv, unsigned unit)
        }
 
        drm_plane_helper_add(primary, &vmw_sou_primary_plane_helper_funcs);
+       drm_plane_enable_fb_damage_clips(primary);
 
        /* Initialize cursor plane */
        vmw_du_plane_reset(cursor);