Lines Matching defs:fence
1068 * issue a dummy occlusion query wait used as a query barrier. When the fence
1071 * since both the new query buffer and the old one are fenced with that fence,
1073 * won't be moved until the fence has signaled.
3812 * vmw_execbuf_fence_commands - create and submit a command stream fence
3814 * Creates a fence object and submits a command stream marker.
3816 * It is then safe to fence buffers with a NULL pointer.
3856 * vmw_execbuf_copy_fence_user - copy fence object information to user-space.
3860 * @ret: Return value from fence object creation.
3863 * @fence: Pointer to the fenc object.
3864 * @fence_handle: User-space fence handle.
3865 * @out_fence_fd: exported file descriptor for the fence. -1 if not used
3867 * This function copies fence information to user-space. If copying fails, the
3872 * Also if copying fails, user-space will be unable to signal the fence object
3879 struct vmw_fence_obj *fence, uint32_t fence_handle,
3892 BUG_ON(fence == NULL);
3895 fence_rep.seqno = fence->base.seqno;
3909 * User-space lost the fence object. We need to sync and unreference the
3915 (void) vmw_fence_obj_wait(fence, false, false,
4095 struct vmw_fence_obj *fence = NULL;
4106 VMW_DEBUG_USER("Failed to get a fence fd.\n");
4218 ret = vmw_execbuf_fence_commands(file_priv, dev_priv, &fence,
4221 * This error is harmless, because if fence submission fails,
4232 vmw_validation_bo_fence(sw_context->ctx, fence);
4235 __vmw_execbuf_release_pinned_bo(dev_priv, fence);
4238 * If anything fails here, give up trying to export the fence and do a
4239 * sync since the user mode will not be able to sync the fence itself.
4244 sync_file = sync_file_create(&fence->base);
4246 VMW_DEBUG_USER("Sync file create failed for fence\n");
4250 (void) vmw_fence_obj_wait(fence, false, false,
4256 user_fence_rep, fence, handle, out_fence_fd);
4260 /* usercopy of fence failed, put the file object */
4264 /* Link the fence with the FD created earlier */
4269 /* Don't unreference when handing fence out */
4271 *out_fence = fence;
4272 fence = NULL;
4273 } else if (likely(fence != NULL)) {
4274 vmw_fence_obj_unreference(&fence);
4347 * @fence: If non-NULL should point to a struct vmw_fence_obj issued _after_ a
4366 struct vmw_fence_obj *fence)
4394 BUG_ON(fence != NULL);
4406 if (fence == NULL) {
4409 fence = lfence;
4411 vmw_validation_bo_fence(&val_ctx, fence);
4487 /* If imported a fence FD from elsewhere, then wait on it */
4492 VMW_DEBUG_USER("Cannot get imported fence\n");