summaryrefslogtreecommitdiffstats
path: root/src/amd/common
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2018-02-02 10:24:16 +1100
committerTimothy Arceri <[email protected]>2018-02-07 08:43:08 +1100
commite3ebffdbb08858de33523e193e815954f4c9c0b1 (patch)
tree1124e1dfd5d62cc2a31f5f381988773e4767547e /src/amd/common
parentc8066cdfa7e1f79a30869ea37ac0bd04763b93aa (diff)
ac: don't call emit_outputs() for compute
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r--src/amd/common/ac_nir_to_llvm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index dcfeae85665..ae569d4c7fc 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -6749,8 +6749,9 @@ void ac_nir_translate(struct ac_llvm_context *ac, struct ac_shader_abi *abi,
visit_cf_list(&ctx, &func->impl->body);
phi_post_pass(&ctx);
- ctx.abi->emit_outputs(ctx.abi, RADEON_LLVM_MAX_OUTPUTS,
- ctx.outputs);
+ if (nir->info.stage != MESA_SHADER_COMPUTE)
+ ctx.abi->emit_outputs(ctx.abi, RADEON_LLVM_MAX_OUTPUTS,
+ ctx.outputs);
free(ctx.locals);
ralloc_free(ctx.defs);