From c42002d26f4ff59e188891e5ff68d8387d1959d3 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 2 Mar 2020 22:03:05 -0500 Subject: [PATCH] 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 Part-of: --- src/panfrost/bifrost/compiler.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index 9e0d4711fb4..faf83b96ac3 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -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; -- 2.30.2