Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5285>
/* Out of the union for csel (could maybe be fixed..) */
bool src_invert[MIR_SRC_COUNT];
+ /* If the op supports it */
+ enum midgard_roundmode roundmode;
+
/* Special fields for an ALU instruction */
midgard_reg_info registers;
}
midgard_constants;
+enum midgard_roundmode {
+ MIDGARD_RTE = 0x0, /* round to even */
+ MIDGARD_RTZ = 0x1, /* round to zero */
+ MIDGARD_RTN = 0x2, /* round to negative */
+ MIDGARD_RTP = 0x3, /* round to positive */
+};
+
#endif