From 0515ac4571a210927718eb9689ca04b353ef5851 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 31 Oct 2019 13:12:53 +0100 Subject: [PATCH] zink/spirv: implement bany_inequal[2-4] --- src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 12 ++++++++++++ 1 file changed, 12 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 e502da7d045..cd7d48c04b7 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 @@ -1040,6 +1040,18 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu) result = emit_unop(ctx, SpvOpAny, dest_type, result); break; + case nir_op_bany_inequal2: + case nir_op_bany_inequal3: + case nir_op_bany_inequal4: + assert(nir_op_infos[alu->op].num_inputs == 2); + assert(alu_instr_src_components(alu, 0) == + alu_instr_src_components(alu, 1)); + result = emit_binop(ctx, SpvOpINotEqual, + get_bvec_type(ctx, alu_instr_src_components(alu, 0)), + src[0], src[1]); + result = emit_unop(ctx, SpvOpAny, dest_type, result); + break; + case nir_op_vec2: case nir_op_vec3: case nir_op_vec4: { -- 2.30.2