From: Erik Faye-Lund Date: Fri, 19 Jul 2019 13:03:13 +0000 (+0200) Subject: zink/spirv: implement b2i32 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2419022a0c476e66dea0c57ea303c05b6d3dd728;p=mesa.git zink/spirv: implement b2i32 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 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); \