pan/bi: Model Valhall special values as FAU
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 22 Jul 2021 22:45:21 +0000 (18:45 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 28 Jul 2021 00:26:06 +0000 (00:26 +0000)
Not sure if this is "really" FAU but it's convenient to treat it as
such.

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

src/panfrost/bifrost/compiler.h

index bb2fc0e..c1ac907 100644 (file)
@@ -611,7 +611,16 @@ enum bir_fau {
         BIR_FAU_BLEND_0 = 8,
         /* blend descs 1 - 7 */
         BIR_FAU_TYPE_MASK = 15,
+
+        /* Valhall only */
+        BIR_FAU_TLS_PTR = 16,
+        BIR_FAU_WLS_PTR = 17,
+        BIR_FAU_PROGRAM_COUNTER = 18,
+
         BIR_FAU_UNIFORM = (1 << 7),
+        /* Look up table on Valhall */
+        BIR_FAU_IMMEDIATE = (1 << 8),
+
 };
 
 static inline bi_index