mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
zink/spirv: implement b2i32
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
f4ad93462c
commit
2419022a0c
1 changed files with 5 additions and 0 deletions
|
|
@ -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); \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue