diff mbox series

[09/14] drm/vmwgfx: enable FB_DAMAGE_CLIPS property for STDU primary plane

Message ID 20180905233901.2321-10-drawat@vmware.com (mailing list archive)
State New, archived
Headers show
Series plane update with damage | expand

Commit Message

Deepak Singh Rawat Sept. 5, 2018, 11:38 p.m. UTC
STDU primary plane now support damage clips, enable it for user-space.

Signed-off-by: Deepak Rawat <drawat@vmware.com>
---
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Thomas Hellstrom Sept. 10, 2018, 8:20 a.m. UTC | #1
On 09/06/2018 01:38 AM, Deepak Rawat wrote:
> STDU primary plane now support damage clips, enable it for user-space.
>
> Signed-off-by: Deepak Rawat <drawat@vmware.com>
> ---
>   drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
> index 167190b75e2f..11a76aa96302 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
> @@ -1883,6 +1883,7 @@ static int vmw_stdu_init(struct vmw_private *dev_priv, unsigned unit)
>   	}
>   
>   	drm_plane_helper_add(primary, &vmw_stdu_primary_plane_helper_funcs);
> +	drm_plane_enable_fb_damage_clips(primary);

LGTM. We should, as a second pass, have a look at cursors as well, to 
avoid having to send the cursor image on each cursor position update..

>   
>   	/* Initialize cursor plane */
>   	vmw_du_plane_reset(cursor);

/Thomas
diff mbox series

Patch

diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
index 167190b75e2f..11a76aa96302 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
@@ -1883,6 +1883,7 @@  static int vmw_stdu_init(struct vmw_private *dev_priv, unsigned unit)
 	}
 
 	drm_plane_helper_add(primary, &vmw_stdu_primary_plane_helper_funcs);
+	drm_plane_enable_fb_damage_clips(primary);
 
 	/* Initialize cursor plane */
 	vmw_du_plane_reset(cursor);