Mesa (master): ac/nir: remove useless check in si_llvm_init_export_args()

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


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

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Thu Feb  8 14:56:42 2018 +0100

ac/nir: remove useless check in si_llvm_init_export_args()

values can't be NULL because we use ac_build_export_null() now.

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, 3 deletions(-)

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index ca9d318c8d..62de7e3d01 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -5763,9 +5763,6 @@ si_llvm_init_export_args(struct nir_to_llvm_context *ctx,
 	args->out[2] = LLVMGetUndef(ctx->ac.f32);
 	args->out[3] = LLVMGetUndef(ctx->ac.f32);
 
-	if (!values)
-		return;
-
 	if (ctx->stage == MESA_SHADER_FRAGMENT && target >= V_008DFC_SQ_EXP_MRT) {
 		unsigned index = target - V_008DFC_SQ_EXP_MRT;
 		unsigned col_format = (ctx->options->key.fs.col_format >> (4 * index)) & 0xf;




More information about the mesa-commit mailing list