zink: add more compares
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 11 Jul 2019 14:36:50 +0000 (16:36 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 08:51:46 +0000 (08:51 +0000)
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c

index 8f96393154b3fca4037419de6f4e606bcf1dc0fe..e55fe449f6b75f8e29f582b65e8fbac92edd75a8 100644 (file)
@@ -839,6 +839,7 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
    BINOP(nir_op_fmul, SpvOpFMul)
    BINOP(nir_op_fdiv, SpvOpFDiv)
    BINOP(nir_op_fmod, SpvOpFMod)
+   BINOP(nir_op_ilt, SpvOpSLessThan)
    BINOP(nir_op_ige, SpvOpSGreaterThanEqual)
    BINOP(nir_op_ieq, SpvOpIEqual)
    BINOP(nir_op_ine, SpvOpINotEqual)