From: Marek Olšák Date: Thu, 28 Jan 2016 01:26:59 +0000 (+0100) Subject: radeonsi: compile geometry shaders immediately X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de2e28366a4b43b7c47373d3bbe17243a4dbb3ba;p=mesa.git radeonsi: compile geometry shaders immediately they have only 1 variant Reviewed-by: Nicolai Hähnle --- 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;