diff options
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 8 |
1 files 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, |