agx: Handle f2f16_rtne like f2f16
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 10 Aug 2023 18:28:55 +0000 (14:28 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 11 Aug 2023 20:31:28 +0000 (20:31 +0000)
TBD whether we can control round modes later on.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24635>

src/asahi/compiler/agx_compile.c

index f262fe5..3428e44 100644 (file)
@@ -1249,6 +1249,7 @@ agx_emit_alu(agx_builder *b, nir_alu_instr *instr)
       TRIOP(ffma, fma);
 
       UNOP(f2f16, fmov);
+      UNOP(f2f16_rtne, fmov);
       UNOP(f2f32, fmov);
       UNOP(fround_even, roundeven);
       UNOP(ftrunc, trunc);