From 2419022a0c476e66dea0c57ea303c05b6d3dd728 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 19 Jul 2019 15:03:13 +0200 Subject: zink/spirv: implement b2i32 Acked-by: Jordan Justen --- src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 5 +++++ 1 file changed, 5 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 0455beabfc6..56248fa92a7 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 @@ -806,6 +806,11 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu) UNOP(nir_op_inot, SpvOpNot) #undef UNOP + case nir_op_b2i32: + assert(nir_op_infos[alu->op].num_inputs == 1); + result = bvec_to_uvec(ctx, src[0], num_components); + break; + #define BUILTIN_UNOP(nir_op, spirv_op) \ case nir_op: \ assert(nir_op_infos[alu->op].num_inputs == 1); \ -- cgit v1.2.3