mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
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:
parent
014d2e46a7
commit
2eb4c85e42
2 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue