From 5dad0c34773549df974f327d1e246ec776c7a1a4 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 28 Apr 2017 16:35:13 +0200 Subject: radeonsi: don't call eliminate_const_vs_outputs in shaders without VS exports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_shader.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, -- cgit v1.2.3