From a91add9369792fa846b0aea116b2f9b141e39728 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sat, 26 Nov 2016 22:44:10 +0100 Subject: radeonsi: don't try to eliminate trivial VS outputs for PS and CS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PS and CS don't have any param exports, so it's a no-op. Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_shader.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/radeonsi') 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. */ -- cgit v1.2.3