From: Marek Olšák Date: Fri, 28 Apr 2017 14:35:13 +0000 (+0200) Subject: radeonsi: don't call eliminate_const_vs_outputs in shaders without VS exports X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5dad0c34773549df974f327d1e246ec776c7a1a4;p=mesa.git radeonsi: don't call eliminate_const_vs_outputs in shaders without VS exports Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 204e641e722..2928fc9039c 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -7237,10 +7237,10 @@ static void si_eliminate_const_vs_outputs(struct si_shader_context *ctx) struct si_shader *shader = ctx->shader; struct tgsi_shader_info *info = &shader->selector->info; - if (ctx->type == PIPE_SHADER_FRAGMENT || - ctx->type == PIPE_SHADER_COMPUTE || - shader->key.as_es || - shader->key.as_ls) + if ((ctx->type != PIPE_SHADER_VERTEX && + ctx->type != PIPE_SHADER_TESS_EVAL) || + shader->key.as_ls || + shader->key.as_es) return; ac_optimize_vs_outputs(&ctx->ac,