From: Timothy Arceri Date: Thu, 1 Feb 2018 23:24:16 +0000 (+1100) Subject: ac: don't call emit_outputs() for compute X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3ebffdbb08858de33523e193e815954f4c9c0b1;p=mesa.git ac: don't call emit_outputs() for compute Reviewed-by: Marek Olšák --- 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);