mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 09:20:23 +01:00
zink/spirv: implement f2b1
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
04bb08ed35
commit
bb895afaa0
1 changed files with 9 additions and 0 deletions
|
|
@ -834,6 +834,15 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
|
|||
}
|
||||
break;
|
||||
|
||||
case nir_op_f2b1: {
|
||||
assert(nir_op_infos[alu->op].num_inputs == 1);
|
||||
float values[NIR_MAX_VEC_COMPONENTS] = { 0 };
|
||||
SpvId zero = get_fvec_constant(ctx, nir_src_bit_size(alu->src[0].src),
|
||||
num_components, values);
|
||||
result = emit_binop(ctx, SpvOpFOrdNotEqual, dest_type, src[0], zero);
|
||||
} break;
|
||||
|
||||
|
||||
#define BINOP(nir_op, spirv_op) \
|
||||
case nir_op: \
|
||||
assert(nir_op_infos[alu->op].num_inputs == 2); \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue