From 2f09ff3fc8dccb70f17867f0dd8cde19b19b7ec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Wed, 21 Oct 2020 08:43:25 +0300 Subject: [PATCH] gallivm/nir: handle nir_op_flt in lp_build_nir_llvm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3663 Signed-off-by: Tapani Pälli Reviewed-by: Marek Olšák Reviewed-by: Dave Airlie Cc: mesa-stable Part-of: (cherry picked from commit c83d6ffa3222b52219406cb6cb4e05232d6fe054) --- .pick_status.json | 2 +- src/gallium/auxiliary/gallivm/lp_bld_nir.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 7ef1fe2332a..ade1d384c4f 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1363,7 +1363,7 @@ "description": "gallivm/nir: handle nir_op_flt in lp_build_nir_llvm", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": null }, diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir.c b/src/gallium/auxiliary/gallivm/lp_bld_nir.c index d2336c17365..e21c2c35de0 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_nir.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_nir.c @@ -555,6 +555,7 @@ static LLVMValueRef do_alu_action(struct lp_build_nir_context *bld_base, case nir_op_flog2: result = lp_build_log2_safe(&bld_base->base, src[0]); break; + case nir_op_flt: case nir_op_flt32: result = fcmp32(bld_base, PIPE_FUNC_LESS, src_bit_size[0], src); break;