mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
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:
parent
5e5573b1bf
commit
a91add9369
1 changed files with 4 additions and 1 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue