diff options
author | Erik Faye-Lund <[email protected]> | 2019-07-19 15:03:13 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-28 08:51:47 +0000 |
commit | 2419022a0c476e66dea0c57ea303c05b6d3dd728 (patch) | |
tree | 066e7ddf4c1246ca0c35afdf79ea7bae25b6528f /src/gallium/drivers/zink | |
parent | f4ad93462c2628c9edf9cf3eaccbad969198fd77 (diff) |
zink/spirv: implement b2i32
Acked-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/zink')
-rw-r--r-- | src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 5 |
1 files changed, 5 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 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); \ |