mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
zink/spirv: implement bitwise ops
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
103776ab9c
commit
f4ad93462c
1 changed files with 3 additions and 0 deletions
|
|
@ -803,6 +803,7 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
|
|||
UNOP(nir_op_f2u32, SpvOpConvertFToU)
|
||||
UNOP(nir_op_i2f32, SpvOpConvertSToF)
|
||||
UNOP(nir_op_u2f32, SpvOpConvertUToF)
|
||||
UNOP(nir_op_inot, SpvOpNot)
|
||||
#undef UNOP
|
||||
|
||||
#define BUILTIN_UNOP(nir_op, spirv_op) \
|
||||
|
|
@ -871,6 +872,8 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
|
|||
BINOP(nir_op_ishl, SpvOpShiftLeftLogical)
|
||||
BINOP(nir_op_ishr, SpvOpShiftRightArithmetic)
|
||||
BINOP(nir_op_ushr, SpvOpShiftRightLogical)
|
||||
BINOP(nir_op_iand, SpvOpBitwiseAnd)
|
||||
BINOP(nir_op_ior, SpvOpBitwiseOr)
|
||||
#undef BINOP
|
||||
|
||||
#define BUILTIN_BINOP(nir_op, spirv_op) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue