agx: Handle b2i8

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24847>
This commit is contained in:
Alyssa Rosenzweig
2023-08-13 16:01:59 -04:00
committed by Marge Bot
parent 7590b2b39d
commit 72231b042c

View File

@@ -1223,6 +1223,7 @@ is_conversion_to_8bit(nir_op op)
case nir_op_u2u8:
case nir_op_f2i8:
case nir_op_f2u8:
case nir_op_b2i8:
return true;
default:
return false;
@@ -1395,6 +1396,7 @@ agx_emit_alu(agx_builder *b, nir_alu_instr *instr)
case nir_op_b2i32:
case nir_op_b2i16:
case nir_op_b2i8:
return agx_icmpsel_to(b, dst, s0, i0, i0, i1, AGX_ICOND_UEQ);
case nir_op_b2b32: