radeonsi: don't call eliminate_const_vs_outputs in shaders without VS exports
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
@@ -7237,10 +7237,10 @@ static void si_eliminate_const_vs_outputs(struct si_shader_context *ctx)
|
|||||||
struct si_shader *shader = ctx->shader;
|
struct si_shader *shader = ctx->shader;
|
||||||
struct tgsi_shader_info *info = &shader->selector->info;
|
struct tgsi_shader_info *info = &shader->selector->info;
|
||||||
|
|
||||||
if (ctx->type == PIPE_SHADER_FRAGMENT ||
|
if ((ctx->type != PIPE_SHADER_VERTEX &&
|
||||||
ctx->type == PIPE_SHADER_COMPUTE ||
|
ctx->type != PIPE_SHADER_TESS_EVAL) ||
|
||||||
shader->key.as_es ||
|
shader->key.as_ls ||
|
||||||
shader->key.as_ls)
|
shader->key.as_es)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ac_optimize_vs_outputs(&ctx->ac,
|
ac_optimize_vs_outputs(&ctx->ac,
|
||||||
|
Reference in New Issue
Block a user