From: Erik Faye-Lund Date: Thu, 11 Jul 2019 12:43:32 +0000 (+0200) Subject: zink: add division ops X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6032fc65b0c4cf78823277e3027a1ed367ee5a3a;p=mesa.git zink: add division ops 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 775b68116f0..61bb83d917b 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 @@ -829,9 +829,12 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu) BINOP(nir_op_iadd, SpvOpIAdd) BINOP(nir_op_isub, SpvOpISub) BINOP(nir_op_imul, SpvOpIMul) + BINOP(nir_op_idiv, SpvOpSDiv) + BINOP(nir_op_udiv, SpvOpUDiv) BINOP(nir_op_fadd, SpvOpFAdd) BINOP(nir_op_fsub, SpvOpFSub) BINOP(nir_op_fmul, SpvOpFMul) + BINOP(nir_op_fdiv, SpvOpFDiv) BINOP(nir_op_fmod, SpvOpFMod) BINOP(nir_op_flt, SpvOpFUnordLessThan) BINOP(nir_op_fge, SpvOpFUnordGreaterThanEqual)