aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2011-10-04 14:13:21 -0400
committerDave Airlie <airlied@redhat.com>2011-10-05 05:17:13 -0400
commitd991ef0395596c4aeabcded322011d3f5fa9e74e (patch)
treed9e1b3ab4ad8454f9c6512a2257b07174460d7b1 /drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
parent626ab771c2f2d060d29470f18b3f7d710ba909dc (diff)
vmwgfx: Add dmabuf helper functions for pinning
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_kms.c')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_kms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
index c34866ab3526..b3d5120b1f4f 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
@@ -804,7 +804,7 @@ static int vmw_framebuffer_dmabuf_pin(struct vmw_framebuffer *vfb)
804 804
805 vmw_overlay_pause_all(dev_priv); 805 vmw_overlay_pause_all(dev_priv);
806 806
807 ret = vmw_dmabuf_to_start_of_vram(dev_priv, vfbd->buffer); 807 ret = vmw_dmabuf_to_start_of_vram(dev_priv, vfbd->buffer, true, false);
808 808
809 vmw_overlay_resume_all(dev_priv); 809 vmw_overlay_resume_all(dev_priv);
810 810
@@ -824,7 +824,7 @@ static int vmw_framebuffer_dmabuf_unpin(struct vmw_framebuffer *vfb)
824 return 0; 824 return 0;
825 } 825 }
826 826
827 return vmw_dmabuf_from_vram(dev_priv, vfbd->buffer); 827 return vmw_dmabuf_unpin(dev_priv, vfbd->buffer, false);
828} 828}
829 829
830static int vmw_kms_new_framebuffer_dmabuf(struct vmw_private *dev_priv, 830static int vmw_kms_new_framebuffer_dmabuf(struct vmw_private *dev_priv,