diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-05-05 16:15:16 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-29 20:34:55 +0000 |
commit | a658a4f7a5599141c678794676f4a5cfc16ba7f1 (patch) | |
tree | 6781b47cf0c030ed0715d9d282704691914ee717 /src/panfrost/bifrost | |
parent | ac64bf9b207f6a4e7f41d57ee123b173f631cb28 (diff) |
pan/bi: Document constant count invariant
constants + instructions <= 13
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5260>
Diffstat (limited to 'src/panfrost/bifrost')
-rw-r--r-- | src/panfrost/bifrost/compiler.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index 43bd8bbc09f..e4d37a8d52b 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -373,7 +373,13 @@ typedef struct { /* Corresponds to the usual bit but shifted by a clause */ bool data_register_write_barrier; - /* Constants read by this clause. ISA limit. */ + /* Constants read by this clause. ISA limit. Must satisfy: + * + * constant_count + bundle_count <= 13 + * + * Also implicitly constant_count <= bundle_count since a bundle only + * reads a single constant. + */ uint64_t constants[8]; unsigned constant_count; |