radeonsi: use a threaded context even for debug contexts
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sun, 22 Oct 2017 15:39:05 +0000 (17:39 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 9 Nov 2017 13:01:04 +0000 (14:01 +0100)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c

index ef5cddda0eb17b490f836e2b51f3203003d48f15..5fbf1b3530307a1fabbecba3fba3429374920a7e 100644 (file)
@@ -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