/** * radeon_ib_sync_to - sync to fence before executing the IB * * @ib: IB object to add fence to * @fence: fence to sync to * * Sync to the fence before executing the IB */ void radeon_ib_sync_to(struct radeon_ib *ib, struct radeon_fence *fence) { struct radeon_fence *other; if (!fence) return; other = ib->sync_to[fence->ring]; ib->sync_to[fence->ring] = radeon_fence_later(fence, other); }
/** * radeon_semaphore_sync_to - use the semaphore to sync to a fence * * @semaphore: semaphore object to add fence to * @fence: fence to sync to * * Sync to the fence using this semaphore object */ void radeon_semaphore_sync_to(struct radeon_semaphore *semaphore, struct radeon_fence *fence) { struct radeon_fence *other; if (!fence) return; other = semaphore->sync_to[fence->ring]; semaphore->sync_to[fence->ring] = radeon_fence_later(fence, other); }