aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2014-04-02 11:14:48 -0400
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>2014-09-02 10:41:50 -0400
commitf2c24b83ae90292d315aa7ac029c6ce7929e01aa (patch)
tree4ef7d29d97cee6231becd7565056d630770d0845 /drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
parent2f453ed4038526172292fb3250b638b3782c7f2b (diff)
drm/ttm: flip the switch, and convert to dma_fence
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c b/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
index 4a449b2528a2..cff2bf9db9d2 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
@@ -802,41 +802,6 @@ static int vmw_ttm_fault_reserve_notify(struct ttm_buffer_object *bo)
802} 802}
803 803
804/** 804/**
805 * FIXME: We're using the old vmware polling method to sync.
806 * Do this with fences instead.
807 */
808
809static void *vmw_sync_obj_ref(void *sync_obj)
810{
811
812 return (void *)
813 vmw_fence_obj_reference((struct vmw_fence_obj *) sync_obj);
814}
815
816static void vmw_sync_obj_unref(void **sync_obj)
817{
818 vmw_fence_obj_unreference((struct vmw_fence_obj **) sync_obj);
819}
820
821static int vmw_sync_obj_flush(void *sync_obj)
822{
823 vmw_fence_obj_flush((struct vmw_fence_obj *) sync_obj);
824 return 0;
825}
826
827static bool vmw_sync_obj_signaled(void *sync_obj)
828{
829 return vmw_fence_obj_signaled((struct vmw_fence_obj *) sync_obj);
830}
831
832static int vmw_sync_obj_wait(void *sync_obj, bool lazy, bool interruptible)
833{
834 return vmw_fence_obj_wait((struct vmw_fence_obj *) sync_obj,
835 lazy, interruptible,
836 VMW_FENCE_WAIT_TIMEOUT);
837}
838
839/**
840 * vmw_move_notify - TTM move_notify_callback 805 * vmw_move_notify - TTM move_notify_callback
841 * 806 *
842 * @bo: The TTM buffer object about to move. 807 * @bo: The TTM buffer object about to move.
@@ -873,11 +838,6 @@ struct ttm_bo_driver vmw_bo_driver = {
873 .evict_flags = vmw_evict_flags, 838 .evict_flags = vmw_evict_flags,
874 .move = NULL, 839 .move = NULL,
875 .verify_access = vmw_verify_access, 840 .verify_access = vmw_verify_access,
876 .sync_obj_signaled = vmw_sync_obj_signaled,
877 .sync_obj_wait = vmw_sync_obj_wait,
878 .sync_obj_flush = vmw_sync_obj_flush,
879 .sync_obj_unref = vmw_sync_obj_unref,
880 .sync_obj_ref = vmw_sync_obj_ref,
881 .move_notify = vmw_move_notify, 841 .move_notify = vmw_move_notify,
882 .swap_notify = vmw_swap_notify, 842 .swap_notify = vmw_swap_notify,
883 .fault_reserve_notify = &vmw_ttm_fault_reserve_notify, 843 .fault_reserve_notify = &vmw_ttm_fault_reserve_notify,