From: Erik Faye-Lund Date: Wed, 12 Jun 2019 15:27:49 +0000 (+0200) Subject: zink: implement fmod X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a9f235ac2f5b7f4c5211493053998a2a4880c17;p=mesa.git zink: implement fmod Acked-by: Jordan Justen --- diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c index e2b0cee4438..20c72fd2147 100644 --- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c +++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c @@ -824,6 +824,7 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu) BINOP(nir_op_fadd, SpvOpFAdd) BINOP(nir_op_fsub, SpvOpFSub) BINOP(nir_op_fmul, SpvOpFMul) + BINOP(nir_op_fmod, SpvOpFMod) BINOP(nir_op_flt, SpvOpFUnordLessThan) BINOP(nir_op_fge, SpvOpFUnordGreaterThanEqual)