Skip to content

Commit 67a51b3

Browse files
deepak-rawatthomashvmw
authored andcommitted
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>
1 parent 5d35aba commit 67a51b3

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -774,21 +774,14 @@ vmw_sou_primary_plane_atomic_update(struct drm_plane *plane,
774774
struct vmw_private *dev_priv = vmw_priv(crtc->dev);
775775
struct vmw_framebuffer *vfb =
776776
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;
783777

784778
if (vfb->bo)
785-
ret = vmw_kms_sou_do_bo_dirty(dev_priv, vfb, NULL,
786-
&vclips, 1, 1, true,
787-
&fence, crtc);
779+
ret = vmw_sou_plane_update_bo(dev_priv, plane,
780+
old_state, vfb, &fence);
788781
else
789-
ret = vmw_kms_sou_do_surface_dirty(dev_priv, vfb, NULL,
790-
&vclips, NULL, 0, 0,
791-
1, 1, &fence, crtc);
782+
ret = vmw_sou_plane_update_surface(dev_priv, plane,
783+
old_state, vfb,
784+
&fence);
792785

793786
/*
794787
* We cannot really fail this function, so if we do, then output

0 commit comments

Comments
 (0)