From 8929fe0c84299cedd1ec86f49b795595ff3f90f8 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 3 Mar 2020 08:37:15 -0500 Subject: [PATCH] pan/bi: Add source type for conversions We should now be able to unambiguously represent conversions. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/compiler.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index 5385f21..a06f988 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -175,6 +175,9 @@ typedef struct { * int). Zero if there is no destination. Bitsize included */ nir_alu_type dest_type; + /* Source types if required by the class */ + nir_alu_type src_types[BIR_SRC_COUNT]; + /* If the source type is 8-bit or 16-bit such that SIMD is possible, and * the class has BI_SWIZZLABLE, this is a swizzle for the input. Swizzles * in practice only occur with one-source arguments (conversions, -- 2.7.4