diff options
author | Erik Faye-Lund <[email protected]> | 2019-03-20 16:16:45 +0100 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-28 08:51:43 +0000 |
commit | f317105dd970e266199622268a2f38e726aa2f2e (patch) | |
tree | 5b4df290bd186e36415b75ce31ad6444c729e79a /src | |
parent | d2abe0ac61ca2b245592924c8e8a2c6539c1c995 (diff) |
zink/spirv: implement some integer ops
Acked-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) |