aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak Rawat <drawat@vmware.com>2018-09-21 17:07:33 -0400
committerThomas Hellstrom <thellstrom@vmware.com>2018-12-05 04:00:41 -0500
commit67a51b3d9889978d3086f9e63bdabe157af428ff (patch)
tree75a9c744a042d0504dec0bcaa0f0f881ec0c66aa
parent5d35abade40d34368838a7b389c3613073b8273c (diff)
drm/vmwgfx: Use the new interface for SOU plane update
With new interface to do plane update on SOU available, use that instead of old kms_dirty. Signed-off-by: Deepak Rawat <drawat@vmware.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c b/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
index 670f4ac5cdd3..0bca79caf96a 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
@@ -774,21 +774,14 @@ vmw_sou_primary_plane_atomic_update(struct drm_plane *plane,
774 struct vmw_private *dev_priv = vmw_priv(crtc->dev); 774 struct vmw_private *dev_priv = vmw_priv(crtc->dev);
775 struct vmw_framebuffer *vfb = 775 struct vmw_framebuffer *vfb =
776 vmw_framebuffer_to_vfb(plane->state->fb); 776 vmw_framebuffer_to_vfb(plane->state->fb);
777 struct drm_vmw_rect vclips;
778
779 vclips.x = crtc->x;
780 vclips.y = crtc->y;
781 vclips.w = crtc->mode.hdisplay;
782 vclips.h = crtc->mode.vdisplay;
783 777
784 if (vfb->bo) 778 if (vfb->bo)
785 ret = vmw_kms_sou_do_bo_dirty(dev_priv, vfb, NULL, 779 ret = vmw_sou_plane_update_bo(dev_priv, plane,
786 &vclips, 1, 1, true, 780 old_state, vfb, &fence);
787 &fence, crtc);
788 else 781 else
789 ret = vmw_kms_sou_do_surface_dirty(dev_priv, vfb, NULL, 782 ret = vmw_sou_plane_update_surface(dev_priv, plane,
790 &vclips, NULL, 0, 0, 783 old_state, vfb,
791 1, 1, &fence, crtc); 784 &fence);
792 785
793 /* 786 /*
794 * We cannot really fail this function, so if we do, then output 787 * We cannot really fail this function, so if we do, then output