Signed-off-by: Chris Forbes <chrisforbes@google.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6091>
case nir_op_iand:
case nir_op_ior:
case nir_op_ixor:
+ case nir_op_inot:
return BI_BITWISE;
BI_CASE_CMP(nir_op_flt)
case nir_op_isub:
alu.op.imath = BI_IMATH_SUB;
break;
+ case nir_op_inot:
+ /* no dedicated bitwise not, but we can invert sources. convert to ~a | 0 */
+ alu.op.bitwise = BI_BITWISE_OR;
+ alu.bitwise.src_invert[0] = true;
+ alu.src[1] = BIR_INDEX_ZERO;
+ break;
case nir_op_fmax:
case nir_op_imax:
case nir_op_umax: