summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-11-10 10:58:10 +0100
committerNicolai Hähnle <[email protected]>2017-11-20 18:16:11 +0100
commitbc65dcab3bc48673ff6180afb036561a4b8b1119 (patch)
tree10cc2098d5acef729eacf0ecfa49d517d67d4f1e /src/gallium/auxiliary
parent3db1ce01b1f33aaeceda4038487a4ce0ceb77267 (diff)
radeonsi: avoid syncing the driver thread in si_fence_finish
It is really only required when we need to flush for deferred fences. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_threaded_context.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_threaded_context.h b/src/gallium/auxiliary/util/u_threaded_context.h
index b2d904569e1..34089561f34 100644
--- a/src/gallium/auxiliary/util/u_threaded_context.h
+++ b/src/gallium/auxiliary/util/u_threaded_context.h
@@ -407,6 +407,14 @@ threaded_transfer(struct pipe_transfer *transfer)
return (struct threaded_transfer*)transfer;
}
+static inline struct pipe_context *
+threaded_context_unwrap_unsync(struct pipe_context *pipe)
+{
+ if (!pipe || !pipe->priv)
+ return pipe;
+ return (struct pipe_context*)pipe->priv;
+}
+
static inline void
tc_unflushed_batch_token_reference(struct tc_unflushed_batch_token **dst,
struct tc_unflushed_batch_token *src)