drm/vmwgfx: Enable FB_DAMAGE_CLIPS property for SOU primary plane

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>
This commit is contained in:
Deepak Rawat 2018-08-08 15:41:56 -07:00 committed by Thomas Hellstrom
parent 31da2df8ce
commit 61c21387c8
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@
#include <drm/drm_plane_helper.h> #include <drm/drm_plane_helper.h>
#include <drm/drm_atomic.h> #include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h> #include <drm/drm_atomic_helper.h>
#include <drm/drm_damage_helper.h>
#define vmw_crtc_to_sou(x) \ #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_helper_add(primary, &vmw_sou_primary_plane_helper_funcs);
drm_plane_enable_fb_damage_clips(primary);
/* Initialize cursor plane */ /* Initialize cursor plane */
vmw_du_plane_reset(cursor); vmw_du_plane_reset(cursor);