diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-02 21:48:51 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-05 14:35:38 +0000 |
commit | 9643b9dd5b683d5e18c085cd49bdfe49143b861b (patch) | |
tree | 18e1b29de39be5b7d3464267d90cfed46fb18b3c /src | |
parent | 6a7987aba10aaf05fbe678b3f3ccf5882b687aea (diff) |
pan/bi: Add bi_load_vary structure
For ld_vary in the IR.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>
Diffstat (limited to 'src')
-rw-r--r-- | src/panfrost/bifrost/compiler.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index 2209e60e82c..e37c03c52f6 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -98,6 +98,17 @@ struct bi_load { unsigned channels; }; +/* BI_LD_VARY */ +struct bi_load_vary { + /* All parameters used here. Indirect location specified in + * src1 and ignoring location, if present. */ + struct bi_load load; + + enum bifrost_interp_mode interp_mode; + bool reuse; + bool flat; +}; + typedef struct { struct list_head link; /* Must be first */ enum bi_class type; @@ -120,6 +131,7 @@ typedef struct { union { enum bifrost_minmax_mode minmax; struct bi_load load; + struct bi_load_vary load_vary; }; } bi_instruction; |