zink: add shift ops
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 11 Jul 2019 12:46:20 +0000 (14:46 +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 61bb83d917b264b545e6d3762a7bbf11cd9b998a..87b34419b5798be17e35ff113a2267c2dd621bdb 100644 (file)
@@ -838,6 +838,9 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
    BINOP(nir_op_fmod, SpvOpFMod)
    BINOP(nir_op_flt, SpvOpFUnordLessThan)
    BINOP(nir_op_fge, SpvOpFUnordGreaterThanEqual)
+   BINOP(nir_op_ishl, SpvOpShiftLeftLogical)
+   BINOP(nir_op_ishr, SpvOpShiftRightArithmetic)
+   BINOP(nir_op_ushr, SpvOpShiftRightLogical)
 #undef BINOP
 
 #define BUILTIN_BINOP(nir_op, spirv_op) \