diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-10-22 17:39:05 +0200 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-11-06 11:09:50 +0100 |
commit | 703b1530fe240194e4a6ae80c14791329f0b405e (patch) | |
tree | 9bca3a6e998d46cc74a22c6ee4284265659919c1 | |
parent | c9d0d5425f9045d1bb5e2918e936bcf63c1d3074 (diff) |
radeonsi: use a threaded context even for debug contexts
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 11 |
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 1022535390..b193a0b4f2 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -389,15 +389,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 |