summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/gallivm/lp_bld_nir.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2021-07-22 15:59:34 +1000
committerMarge Bot <eric+marge@anholt.net>2021-09-16 04:15:41 +0000
commitbceae73b3f17278f69e86cde29ee4336669c2b65 (patch)
tree4c081587dd9debe6a8dea866c47b85e48d8823a9 /src/gallium/auxiliary/gallivm/lp_bld_nir.c
parent836b0ace10146957fa0fdc33fcf3391103a6459b (diff)
downloadmesa-bceae73b3f17278f69e86cde29ee4336669c2b65.tar.gz
gallivm/nir: call pow with correct flt builder
Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11816>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_nir.c')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_nir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir.c b/src/gallium/auxiliary/gallivm/lp_bld_nir.c
index 04dd86a3115..d451766b9db 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_nir.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_nir.c
@@ -789,7 +789,7 @@ static LLVMValueRef do_alu_action(struct lp_build_nir_context *bld_base,
result = lp_build_negate(get_flt_bld(bld_base, src_bit_size[0]), src[0]);
break;
case nir_op_fpow:
- result = lp_build_pow(&bld_base->base, src[0], src[1]);
+ result = lp_build_pow(get_flt_bld(bld_base, src_bit_size[0]), src[0], src[1]);
break;
case nir_op_fquantize2f16:
result = do_quantize_to_f16(bld_base, src[0]);