Commit 476d51db authored by Thomas Hellstrom's avatar Thomas Hellstrom Committed by Dave Airlie

drm/vmwgfx: Implement a swap_notify callback.

Unbind GMR bindings on the buffer about to be swapped out.
Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 3f09ea4e
...@@ -179,6 +179,11 @@ static void vmw_move_notify(struct ttm_buffer_object *bo, ...@@ -179,6 +179,11 @@ static void vmw_move_notify(struct ttm_buffer_object *bo,
vmw_dmabuf_gmr_unbind(bo); vmw_dmabuf_gmr_unbind(bo);
} }
static void vmw_swap_notify(struct ttm_buffer_object *bo)
{
vmw_dmabuf_gmr_unbind(bo);
}
/** /**
* FIXME: We're using the old vmware polling method to sync. * FIXME: We're using the old vmware polling method to sync.
* Do this with fences instead. * Do this with fences instead.
...@@ -233,5 +238,6 @@ struct ttm_bo_driver vmw_bo_driver = { ...@@ -233,5 +238,6 @@ struct ttm_bo_driver vmw_bo_driver = {
.sync_obj_flush = vmw_sync_obj_flush, .sync_obj_flush = vmw_sync_obj_flush,
.sync_obj_unref = vmw_sync_obj_unref, .sync_obj_unref = vmw_sync_obj_unref,
.sync_obj_ref = vmw_sync_obj_ref, .sync_obj_ref = vmw_sync_obj_ref,
.move_notify = vmw_move_notify .move_notify = vmw_move_notify,
.swap_notify = vmw_swap_notify
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment