gallium/u_threaded: avoid syncing in threaded_context_flush
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 10 Nov 2017 10:15:44 +0000 (11:15 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 20 Nov 2017 17:16:15 +0000 (18:16 +0100)
commit3f17d3c01753020ff01e8d30a25edff6ca453971
treeb8c3611bc8b1e1807ca9e74530a444df8beebdad
parentbc65dcab3bc48673ff6180afb036561a4b8b1119
gallium/u_threaded: avoid syncing in threaded_context_flush

We could always do the flush asynchronously, but if we're going to wait
for a fence anyway and the driver thread is currently idle, the additional
communication overhead isn't worth it.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_threaded_context.c
src/gallium/auxiliary/util/u_threaded_context.h
src/gallium/drivers/radeonsi/si_fence.c