gallivm/nir: handle nir_op_flt in lp_build_nir_llvm

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3663
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7248>
(cherry picked from commit c83d6ffa32)
This commit is contained in:
Tapani Pälli 2020-10-21 08:43:25 +03:00 committed by Dylan Baker
parent 4f0bee6775
commit 2f09ff3fc8
2 changed files with 2 additions and 1 deletions

View file

@ -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
},

View file

@ -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;