summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-10-22 17:39:05 +0200
committerNicolai Hähnle <[email protected]>2017-11-09 14:01:04 +0100
commitb921da3b74d71598c47da2bc46e445e3813d7933 (patch)
tree7d13d516cdd670c4af46ef9ae79ef5a455f405b8 /src/gallium
parent1a6d9e087a2171ae4d0f2ac2697ba4042fbad4c1 (diff)
radeonsi: use a threaded context even for debug contexts
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index ef5cddda0eb..5fbf1b35303 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -381,15 +381,8 @@ static struct pipe_context *si_pipe_create_context(struct pipe_screen *screen,
if (!(flags & PIPE_CONTEXT_PREFER_THREADED))
return ctx;
- /* Clover (compute-only) is unsupported.
- *
- * Since the threaded context creates shader states from the non-driver
- * thread, asynchronous compilation is required for create_{shader}_-
- * state not to use pipe_context. Debug contexts (ddebug) disable
- * asynchronous compilation, so don't use the threaded context with
- * those.
- */
- if (flags & (PIPE_CONTEXT_COMPUTE_ONLY | PIPE_CONTEXT_DEBUG))
+ /* Clover (compute-only) is unsupported. */
+ if (flags & PIPE_CONTEXT_COMPUTE_ONLY)
return ctx;
/* When shaders are logged to stderr, asynchronous compilation is