Lines Matching defs:fence

99 	 * and can't be freed until @fence is passed.
104 unsigned fence; /* Split to read_fence, write_fence */
129 * List of blocks which are in the GART and have an active fence on
134 * List of blocks which have an expired fence and are ready to be
146 * Driver callback to emit a fence, returning the cookie.
152 * emitting the fence, but this should change.
155 /** Driver callback to wait for a fence cookie to have passed. */
156 void (*fence_wait) (unsigned int fence, void *private);
247 void (*wait) (unsigned int fence,
400 drmMsg("%s:%d: Error waiting for fence: %s.\n", __FILE__,
408 _fence_test(drm_intel_bufmgr_fake *bufmgr_fake, unsigned fence)
412 return fence == 0 || FENCE_LTE(fence, bufmgr_fake->last_fence);
548 if (block->fence && max_fence && !FENCE_LTE(block->fence,
586 * Removes all objects from the fenced list older than the given fence.
598 if (_fence_test(bufmgr_fake, block->fence)) {
617 /* Blocks are ordered by fence, so if one fails, all
620 DBG("fence not passed: offset %x sz %x %d %d \n",
621 block->mem->ofs, block->mem->size, block->fence,
632 fence_blocks(drm_intel_bufmgr_fake *bufmgr_fake, unsigned fence)
637 DBG("Fence block %p (sz 0x%x ofs %x buf %p) with fence %d\n",
638 block, block->mem->size, block->mem->ofs, block->bo, fence);
639 block->fence = fence;
686 uint32_t fence = bufmgr_fake->fenced.next->fence;
687 _fence_wait_internal(bufmgr_fake, fence);
695 uint32_t fence = bufmgr_fake->fenced.next->fence;
696 _fence_wait_internal(bufmgr_fake, fence);
722 * Wait for hardware idle by emitting a fence and waiting for it.
749 _fence_wait_internal(bufmgr_fake, bo_fake->block->fence);
791 assert(_fence_test(bufmgr_fake, block->fence));
1173 /* Add it to the needs-fence list */
1198 /* Actually, should be able to just wait for a fence on the