summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/freedreno/freedreno_fence.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/gallium/drivers/freedreno/freedreno_fence.c')
-rw-r--r--lib/mesa/src/gallium/drivers/freedreno/freedreno_fence.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mesa/src/gallium/drivers/freedreno/freedreno_fence.c b/lib/mesa/src/gallium/drivers/freedreno/freedreno_fence.c
index 552f42a3d..e7677009f 100644
--- a/lib/mesa/src/gallium/drivers/freedreno/freedreno_fence.c
+++ b/lib/mesa/src/gallium/drivers/freedreno/freedreno_fence.c
@@ -55,7 +55,7 @@ fence_flush(struct pipe_context *pctx, struct pipe_fence_handle *fence,
if (!timeout)
return false;
- if (timeout == PIPE_TIMEOUT_INFINITE) {
+ if (timeout == OS_TIMEOUT_INFINITE) {
util_queue_fence_wait(&fence->ready);
} else {
int64_t abs_timeout = os_time_get_absolute_timeout(timeout);
@@ -267,7 +267,7 @@ fd_pipe_fence_get_fd(struct pipe_screen *pscreen, struct pipe_fence_handle *fenc
* but if TC is not used, this will be null. Which is fine, we won't call
* threaded_context_flush() in that case
*/
- fence_flush(&fence->ctx->tc->base, fence, PIPE_TIMEOUT_INFINITE);
+ fence_flush(&fence->ctx->tc->base, fence, OS_TIMEOUT_INFINITE);
assert(fence->fence);
return os_dupfd_cloexec(fence->fence->fence_fd);
}
@@ -289,10 +289,10 @@ fd_pipe_fence_set_batch(struct pipe_fence_handle *fence, struct fd_batch *batch)
{
if (batch) {
assert(!fence->batch);
- fence->batch = batch;
+ fd_batch_reference(&fence->batch, batch);
fd_batch_needs_flush(batch);
} else {
- fence->batch = NULL;
+ fd_batch_reference(&fence->batch, NULL);
/* When the batch is dis-associated with the fence, we can signal TC
* that the fence is flushed