diff options
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 6228a68cdcc..20f4a1d0776 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -6487,7 +6487,10 @@ static void si_eliminate_const_vs_outputs(struct si_shader_context *ctx) exports.num = 0; - if (shader->key.as_es || shader->key.as_ls) + if (ctx->type == PIPE_SHADER_FRAGMENT || + ctx->type == PIPE_SHADER_COMPUTE || + shader->key.as_es || + shader->key.as_ls) return; /* Process all LLVM instructions. */ |