ac/nir: use ac_build_export_null()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 7 Feb 2018 18:09:13 +0000 (19:09 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 8 Feb 2018 21:11:44 +0000 (22:11 +0100)
The number of enabled channels should be 0 when exporting null.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c

index 72105c21e4298cb6840aadf585a904c428cb8e11..ca9d318c8dd935bbd10c75daf67b1b5ac6c67102 100644 (file)
@@ -6484,8 +6484,7 @@ handle_fs_outputs_post(struct nir_to_llvm_context *ctx)
        if (depth || stencil || samplemask)
                radv_export_mrt_z(ctx, depth, stencil, samplemask);
        else if (!index) {
-               si_export_mrt_color(ctx, NULL, V_008DFC_SQ_EXP_NULL, true, &color_args[0]);
-               ac_build_export(&ctx->ac, &color_args[0]);
+               ac_build_export_null(&ctx->ac);
        }
 }