From aa2f12de562e38b7b0e154c7d467aa1d85279a32 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 2 Mar 2020 21:19:16 -0500 Subject: [PATCH] pan/bi: Add bi_load structure Fills out the class for LD_ATTR, LD_VAR_ADDR Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/compiler.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index 97c6d062bde..2209e60e82c 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -89,6 +89,15 @@ extern unsigned bi_class_props[BI_NUM_CLASSES]; /* It can't get any worse than csel4... can it? */ #define BIR_SRC_COUNT 4 +/* Class-specific data for BI_LD_ATTR, BI_LD_VAR_ADDR */ +struct bi_load { + /* Note: no indirects here */ + unsigned location; + + /* Only for BI_LD_ATTR. But number of vector channels */ + unsigned channels; +}; + typedef struct { struct list_head link; /* Must be first */ enum bi_class type; @@ -110,6 +119,7 @@ typedef struct { /* Union for class-specific information */ union { enum bifrost_minmax_mode minmax; + struct bi_load load; }; } bi_instruction; -- 2.30.2