Mesa (master): ac/nir: set the second v_cvt_pkrtz argument to undef if it's unused
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 2 20:46:54 UTC 2020
Module: Mesa
Branch: master
Commit: 7c423dd721401eaff22c82e69ffaf70e4d31f50f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7c423dd721401eaff22c82e69ffaf70e4d31f50f
Author: Marek Olšák <marek.olsak at amd.com>
Date: Mon May 11 16:31:58 2020 -0400
ac/nir: set the second v_cvt_pkrtz argument to undef if it's unused
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5003>
---
src/amd/llvm/ac_nir_to_llvm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/llvm/ac_nir_to_llvm.c b/src/amd/llvm/ac_nir_to_llvm.c
index 8a707c93666..cfdba201d4d 100644
--- a/src/amd/llvm/ac_nir_to_llvm.c
+++ b/src/amd/llvm/ac_nir_to_llvm.c
@@ -971,7 +971,7 @@ static void visit_alu(struct ac_nir_context *ctx, const nir_alu_instr *instr)
}
assert(ac_get_llvm_num_components(src[0]) == 1);
- LLVMValueRef param[2] = { src[0], ctx->ac.f32_0 };
+ LLVMValueRef param[2] = { src[0], LLVMGetUndef(ctx->ac.f32) };
result = ac_build_cvt_pkrtz_f16(&ctx->ac, param);
result = LLVMBuildExtractElement(ctx->ac.builder, result, ctx->ac.i32_0, "");
} else {
More information about the mesa-commit
mailing list