mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
gallivm/nir: add imod support
Just adds support for the imod instruction Fixes: dEQP-VK.glsl.operator.binary_operator.mod.* Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6339>
This commit is contained in:
parent
407fa329a4
commit
da4f2215aa
1 changed files with 1 additions and 0 deletions
|
|
@ -689,6 +689,7 @@ static LLVMValueRef do_alu_action(struct lp_build_nir_context *bld_base,
|
|||
result = lp_build_or(get_int_bld(bld_base, false, src_bit_size[0]),
|
||||
src[0], src[1]);
|
||||
break;
|
||||
case nir_op_imod:
|
||||
case nir_op_irem:
|
||||
result = do_int_mod(bld_base, false, src_bit_size[0], src[0], src[1]);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue