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>
This commit is contained in:
Thomas Hellstrom
2011-10-04 20:13:28 +02:00
committed by Dave Airlie
parent 0cff60c625
commit b37a6b9ad0
5 changed files with 45 additions and 65 deletions

View File

@@ -613,8 +613,7 @@ int vmw_fb_off(struct vmw_private *vmw_priv)
par->bo_ptr = NULL;
ttm_bo_kunmap(&par->map);
/* move this to system instead of just unpinning it */
vmw_dmabuf_to_system(vmw_priv, par->vmw_bo, false);
vmw_dmabuf_unpin(vmw_priv, par->vmw_bo, false);
return 0;
}