summaryrefslogtreecommitdiffstats
path: root/src/panfrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-03-03 08:37:15 -0500
committerMarge Bot <[email protected]>2020-03-05 14:35:38 +0000
commit8929fe0c84299cedd1ec86f49b795595ff3f90f8 (patch)
treedbe39165ffffd42e4478b2ecb3c38f4be80616b4 /src/panfrost
parent5896db957876c4dc1cd7ecb4e6eef44690b10530 (diff)
pan/bi: Add source type for conversions
We should now be able to unambiguously represent conversions. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>
Diffstat (limited to 'src/panfrost')
-rw-r--r--src/panfrost/bifrost/compiler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h
index 5385f21d4b5..a06f9881908 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,