summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-07-11 14:47:20 +0200
committerErik Faye-Lund <[email protected]>2019-10-28 08:51:46 +0000
commitbcd12adce54c3eb430fc9ac25b804889151d8528 (patch)
tree04939a9a15343e4c4c911805171049cec77a82a6
parentd19f0b437bddedf6a0183c6053777ab25b7fbe7c (diff)
zink: implement ineg
Acked-by: Jordan Justen <[email protected]>
-rw-r--r--src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c1
1 files changed, 1 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 87b34419b57..e1372eabd90 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
@@ -783,6 +783,7 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
result = emit_unop(ctx, spirv_op, dest_type, src[0]); \
break;
+ UNOP(nir_op_ineg, SpvOpSNegate)
UNOP(nir_op_fneg, SpvOpFNegate)
UNOP(nir_op_fddx, SpvOpDPdx)
UNOP(nir_op_fddy, SpvOpDPdy)