From d19f0b437bddedf6a0183c6053777ab25b7fbe7c Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 11 Jul 2019 14:46:20 +0200 Subject: [PATCH] zink: add shift ops Acked-by: Jordan Justen --- src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 3 +++ 1 file changed, 3 insertions(+) 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 61bb83d917b..87b34419b57 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 @@ -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) \ -- 2.30.2