Mesa (master): ac/nir: use ac_build_export_null()

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Thu Feb 8 21:15:58 UTC 2018


Module: Mesa
Branch: master
Commit: 26ab5a42695b579d255827c0219775fecbbd4d34
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=26ab5a42695b579d255827c0219775fecbbd4d34

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Feb  7 19:09:13 2018 +0100

ac/nir: use ac_build_export_null()

The number of enabled channels should be 0 when exporting null.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

---

 src/amd/common/ac_nir_to_llvm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 72105c21e4..ca9d318c8d 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -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);
 	}
 }
 




More information about the mesa-commit mailing list