mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 07:00:27 +01:00
zink: nir_op_b2f64 implementation
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7654>
This commit is contained in:
parent
98a73027e1
commit
d8ee1fa341
1 changed files with 3 additions and 2 deletions
|
|
@ -1257,10 +1257,11 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
|
|||
break;
|
||||
|
||||
case nir_op_b2f32:
|
||||
case nir_op_b2f64:
|
||||
assert(nir_op_infos[alu->op].num_inputs == 1);
|
||||
result = emit_select(ctx, dest_type, src[0],
|
||||
get_fvec_constant(ctx, 32, num_components, 1),
|
||||
get_fvec_constant(ctx, 32, num_components, 0));
|
||||
get_fvec_constant(ctx, bit_size, num_components, 1),
|
||||
get_fvec_constant(ctx, bit_size, num_components, 0));
|
||||
break;
|
||||
|
||||
#define BUILTIN_UNOP(nir_op, spirv_op) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue