diff options
author | Marek Olšák <[email protected]> | 2016-11-26 22:44:10 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-11-29 23:52:31 +0100 |
commit | a91add9369792fa846b0aea116b2f9b141e39728 (patch) | |
tree | 4411da845d569db31b44cdeb4b46f628108dd3f1 /src/gallium/drivers/radeonsi/si_shader.c | |
parent | 5e5573b1bf8565f38e9b770b5357d069e80ff00d (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-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. */ |