From: Marek Olšák Date: Sat, 26 Nov 2016 21:44:10 +0000 (+0100) Subject: radeonsi: don't try to eliminate trivial VS outputs for PS and CS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a91add9369792fa846b0aea116b2f9b141e39728;p=mesa.git radeonsi: don't try to eliminate trivial VS outputs for PS and CS PS and CS don't have any param exports, so it's a no-op. Reviewed-by: Nicolai Hähnle --- 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. */