From c118888f925cf8047aa724d661ec8bb2c9f05810 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 22 Jul 2021 16:14:57 +1000 Subject: [PATCH] gallivm/nir: pass the correct float builder to ddx/y Reviewed-by: Roland Scheidegger Part-of: --- src/gallium/auxiliary/gallivm/lp_bld_nir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir.c b/src/gallium/auxiliary/gallivm/lp_bld_nir.c index d451766b9db..a07603d35d0 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_nir.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_nir.c @@ -689,12 +689,12 @@ static LLVMValueRef do_alu_action(struct lp_build_nir_context *bld_base, case nir_op_fddx: case nir_op_fddx_coarse: case nir_op_fddx_fine: - result = lp_build_ddx(&bld_base->base, src[0]); + result = lp_build_ddx(get_flt_bld(bld_base, src_bit_size[0]), src[0]); break; case nir_op_fddy: case nir_op_fddy_coarse: case nir_op_fddy_fine: - result = lp_build_ddy(&bld_base->base, src[0]); + result = lp_build_ddy(get_flt_bld(bld_base, src_bit_size[0]), src[0]); break; case nir_op_fdiv: result = lp_build_div(get_flt_bld(bld_base, src_bit_size[0]),