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:
parent
bceae73b3f
commit
c118888f92
|
@ -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]),
|
||||
|
|
Loading…
Reference in New Issue