pan/bi: Add dest_type field to bifrost_instruction

A number of opcodes within a class are disambiguated by type/size, and
whether modifiers make sense or not depends on whether the instruction
acts like a float.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>
This commit is contained in:
Alyssa Rosenzweig
2020-03-02 22:03:05 -05:00
committed by Marge Bot
parent a35854c5ee
commit c42002d26f

View File

@@ -136,6 +136,12 @@ typedef struct {
/* Round mode (requires BI_ROUNDMODE) */
enum bifrost_roundmode roundmode;
/* Destination type. Usually the type of the instruction
* itself, but if sources and destination have different
* types, the type of the destination wins (so f2i would be
* int). Zero if there is no destination. Bitsize included */
nir_alu_type dest_type;
/* Union for class-specific information */
union {
enum bifrost_minmax_mode minmax;