aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2011-10-04 14:13:28 -0400
committerDave Airlie <airlied@redhat.com>2011-10-05 05:17:20 -0400
commitb37a6b9ad002a6c123a6924668dfef5c5fb0b700 (patch)
treeab1df2dec40546ec69fff9b6837cf5711cc7fb34 /drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
parent0cff60c625131c64847debc2b4cee33ba33e8d8f (diff)
vmwgfx: minor dmabuf utilities cleanup
Add / fix some function comments. Don't move out an fbdev framebuffer when unused. Just unpin. Only have a single function that computes a SVGAGuestPtr from the buffer's current placement, and make it more versatile by accepting a struct ttm_buffer_object Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_fb.c')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_fb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
index 191f1b2a2a26..070797b7b03a 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
@@ -613,8 +613,7 @@ int vmw_fb_off(struct vmw_private *vmw_priv)
613 par->bo_ptr = NULL; 613 par->bo_ptr = NULL;
614 ttm_bo_kunmap(&par->map); 614 ttm_bo_kunmap(&par->map);
615 615
616 /* move this to system instead of just unpinning it */ 616 vmw_dmabuf_unpin(vmw_priv, par->vmw_bo, false);
617 vmw_dmabuf_to_system(vmw_priv, par->vmw_bo, false);
618 617
619 return 0; 618 return 0;
620} 619}