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 <nicolai.haehnle@amd.com>
This commit is contained in:
Marek Olšák 2016-11-26 22:44:10 +01:00
parent 5e5573b1bf
commit a91add9369

View file

@ -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. */