gallivm/nir: pass the correct float builder to ddx/y

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11816>
This commit is contained in:
Dave Airlie 2021-07-22 16:14:57 +10:00 committed by Marge Bot
parent bceae73b3f
commit c118888f92
1 changed files with 2 additions and 2 deletions

View File

@ -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]),