From: Erik Faye-Lund Date: Wed, 20 Mar 2019 15:16:45 +0000 (+0100) Subject: zink/spirv: implement some integer ops X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f317105dd970e266199622268a2f38e726aa2f2e;p=mesa.git zink/spirv: implement some integer 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 e074f39df8a..6b2c75fa96f 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 @@ -762,6 +762,9 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu) result = emit_builtin_binop(ctx, spirv_op, dest_type, src[0], src[1]); \ break; + BINOP(nir_op_iadd, SpvOpIAdd) + BINOP(nir_op_isub, SpvOpISub) + BINOP(nir_op_imul, SpvOpIMul) BINOP(nir_op_fadd, SpvOpFAdd) BINOP(nir_op_fsub, SpvOpFSub) BINOP(nir_op_fmul, SpvOpFMul)