pan/bi: Add constants to bi_clause
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 3 Mar 2020 18:01:41 +0000 (13:01 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 5 Mar 2020 14:35:38 +0000 (14:35 +0000)
Scheduling will have to pay attention to this.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>

src/panfrost/bifrost/compiler.h

index 654a0859fd7c4a47c73fd85e168e2d28d51f91f0..a010cb896d1dfa3bce9bfb44dc2a1cb4356f682d 100644 (file)
@@ -252,6 +252,10 @@ typedef struct {
 
         /* Corresponds to the usual bit but shifted by a clause */
         bool data_register_write_barrier;
+
+        /* Constants read by this clause. ISA limit. */
+        uint64_t constants[8];
+        unsigned constant_count;
 } bi_clause;
 
 typedef struct bi_block {