agx: Add agx_ushr helper
Syntax sugar for the underlying bitfield manipulation instruction. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12053>
This commit is contained in:
@@ -542,7 +542,7 @@ agx_emit_alu(agx_builder *b, nir_alu_instr *instr)
|
||||
case nir_op_imul: return agx_imad_to(b, dst, s0, s1, agx_zero(), 0);
|
||||
|
||||
case nir_op_ishl: return agx_bfi_to(b, dst, agx_zero(), s0, s1, 0);
|
||||
case nir_op_ushr: return agx_bfeil_to(b, dst, agx_zero(), s0, s1, 0);
|
||||
case nir_op_ushr: return agx_ushr_to(b, dst, s0, s1);
|
||||
case nir_op_ishr: return agx_asr_to(b, dst, s0, s1);
|
||||
|
||||
case nir_op_bcsel:
|
||||
|
Reference in New Issue
Block a user