diff options
author | Erik Faye-Lund <[email protected]> | 2019-07-11 14:46:20 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-28 08:51:46 +0000 |
commit | d19f0b437bddedf6a0183c6053777ab25b7fbe7c (patch) | |
tree | d70fa20a3ea29dd885622ea52b9e5384569aef2c /src/gallium | |
parent | 6032fc65b0c4cf78823277e3027a1ed367ee5a3a (diff) |
zink: add shift ops
Acked-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/gallium')
-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 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) \ |