summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-01-28 02:26:59 +0100
committerMarek Olšák <[email protected]>2016-02-09 21:19:51 +0100
commitde2e28366a4b43b7c47373d3bbe17243a4dbb3ba (patch)
treec627355b8c652be7129e2d2198b4ac3433b9477f
parentf7a8b6fff5ae23546ed92aad4ad67470355ed919 (diff)
radeonsi: compile geometry shaders immediately
they have only 1 variant Reviewed-by: Nicolai Hähnle <[email protected]>
-rw-r--r--src/gallium/drivers/radeonsi/si_state_shaders.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c
index 27a981ee0dc..ce795c02c32 100644
--- a/src/gallium/drivers/radeonsi/si_state_shaders.c
+++ b/src/gallium/drivers/radeonsi/si_state_shaders.c
@@ -916,7 +916,8 @@ static void *si_create_shader_selector(struct pipe_context *ctx,
}
/* Pre-compilation. */
- if (sscreen->b.debug_flags & DBG_PRECOMPILE) {
+ if (sel->type == PIPE_SHADER_GEOMETRY ||
+ sscreen->b.debug_flags & DBG_PRECOMPILE) {
struct si_shader_ctx_state state = {sel};
union si_shader_key key;