diff options
author | Marek Olšák <[email protected]> | 2017-04-28 16:35:13 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-05-05 00:23:44 +0200 |
commit | 5dad0c34773549df974f327d1e246ec776c7a1a4 (patch) | |
tree | 148171bf2a28b17c2e1653daea34a9508dd02cbb /src/gallium/drivers/radeonsi | |
parent | 12beef037409ac3752b1b3ca5ec1d371c64220b9 (diff) |
radeonsi: don't call eliminate_const_vs_outputs in shaders without VS exports
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-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, |