And a class property signaling it's okay to use.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>
[BI_CONVERT] = 0,
[BI_CSEL] = 0,
[BI_DISCARD] = 0,
- [BI_FMA] = 0,
+ [BI_FMA] = BI_ROUNDMODE,
[BI_FREXP] = 0,
[BI_LOAD] = 0,
[BI_LOAD_ATTR] = 0,
[BI_STORE_VAR] = 0,
[BI_SPECIAL] = 0,
[BI_TEX] = 0,
- [BI_ROUND] = BI_GENERIC,
+ [BI_ROUND] = BI_GENERIC | BI_ROUNDMODE,
};
* irregular enough to warrant a separate class */
#define BI_GENERIC (1 << 1)
+/* Accepts a bifrost_roundmode */
+#define BI_ROUNDMODE (1 << 2)
+
/* It can't get any worse than csel4... can it? */
#define BIR_SRC_COUNT 4
enum bifrost_outmod outmod;
bool src_abs[BIR_SRC_COUNT];
bool src_neg[BIR_SRC_COUNT];
+
+ /* Round mode (requires BI_ROUNDMODE) */
+ enum bifrost_roundmode roundmode;
} bi_instruction;
typedef struct {