drm/vmwgfx: Introduce a pin count to allow for recursive pinning v2
[linux-2.6-block.git] / drivers / gpu / drm / vmwgfx / vmwgfx_overlay.c
index 7f4b2f072c6f469fd24cc9d5f953f45bafc89440..d839051cc1cbee1a29959113ce9c37a305f9a5b2 100644 (file)
@@ -232,9 +232,9 @@ static int vmw_overlay_move_buffer(struct vmw_private *dev_priv,
                return vmw_dmabuf_unpin(dev_priv, buf, inter);
 
        if (dev_priv->active_display_unit == vmw_du_legacy)
-               return vmw_dmabuf_to_vram(dev_priv, buf, true, inter);
+               return vmw_dmabuf_pin_in_vram(dev_priv, buf, inter);
 
-       return vmw_dmabuf_to_vram_or_gmr(dev_priv, buf, true, inter);
+       return vmw_dmabuf_pin_in_vram_or_gmr(dev_priv, buf, inter);
 }
 
 /**