diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2011-10-04 14:13:28 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-10-05 05:17:20 -0400 |
commit | b37a6b9ad002a6c123a6924668dfef5c5fb0b700 (patch) | |
tree | ab1df2dec40546ec69fff9b6837cf5711cc7fb34 /drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c | |
parent | 0cff60c625131c64847debc2b4cee33ba33e8d8f (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_scrn.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c b/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c index e74b8e31d042..347e40699443 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c | |||
@@ -168,7 +168,7 @@ static int vmw_sou_fifo_create(struct vmw_private *dev_priv, | |||
168 | cmd->obj.root.y = y; | 168 | cmd->obj.root.y = y; |
169 | 169 | ||
170 | /* Ok to assume that buffer is pinned in vram */ | 170 | /* Ok to assume that buffer is pinned in vram */ |
171 | vmw_dmabuf_get_guest_ptr(sou->buffer, &cmd->obj.backingStore.ptr); | 171 | vmw_bo_get_guest_ptr(&sou->buffer->base, &cmd->obj.backingStore.ptr); |
172 | cmd->obj.backingStore.pitch = mode->hdisplay * 4; | 172 | cmd->obj.backingStore.pitch = mode->hdisplay * 4; |
173 | 173 | ||
174 | vmw_fifo_commit(dev_priv, fifo_size); | 174 | vmw_fifo_commit(dev_priv, fifo_size); |