radeonsi: compile geometry shaders immediately
authorMarek Olšák <marek.olsak@amd.com>
Thu, 28 Jan 2016 01:26:59 +0000 (02:26 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 9 Feb 2016 20:19:51 +0000 (21:19 +0100)
they have only 1 variant

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_state_shaders.c

index 27a981ee0dc648de4312e06df07f4d3a1c704ba2..ce795c02c321bad788cf682ccbea2212d11ef2a7 100644 (file)
@@ -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;