From: Erik Faye-Lund Date: Fri, 19 Jul 2019 13:02:49 +0000 (+0200) Subject: zink/spirv: implement bitwise ops X-Git-Tag: upstream/19.3.0~379 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4ad93462c2628c9edf9cf3eaccbad969198fd77;p=platform%2Fupstream%2Fmesa.git zink/spirv: implement bitwise ops Acked-by: Jordan Justen --- 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 a78a26b..0455bea 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 @@ -803,6 +803,7 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu) UNOP(nir_op_f2u32, SpvOpConvertFToU) UNOP(nir_op_i2f32, SpvOpConvertSToF) UNOP(nir_op_u2f32, SpvOpConvertUToF) + UNOP(nir_op_inot, SpvOpNot) #undef UNOP #define BUILTIN_UNOP(nir_op, spirv_op) \ @@ -871,6 +872,8 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu) BINOP(nir_op_ishl, SpvOpShiftLeftLogical) BINOP(nir_op_ishr, SpvOpShiftRightArithmetic) BINOP(nir_op_ushr, SpvOpShiftRightLogical) + BINOP(nir_op_iand, SpvOpBitwiseAnd) + BINOP(nir_op_ior, SpvOpBitwiseOr) #undef BINOP #define BUILTIN_BINOP(nir_op, spirv_op) \