pan/mdg: Add roundmode enum

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5285>
This commit is contained in:
Alyssa Rosenzweig 2020-05-25 14:05:34 -04:00 committed by Marge Bot
parent 014d2e46a7
commit 2eb4c85e42
2 changed files with 10 additions and 0 deletions

View file

@ -121,6 +121,9 @@ typedef struct midgard_instruction {
/* 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;

View file

@ -822,4 +822,11 @@ typedef union midgard_constants {
}
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