pan/bi: Structify TEX compact
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 21 Apr 2020 20:08:41 +0000 (16:08 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Apr 2020 01:01:17 +0000 (01:01 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4671>

src/panfrost/bifrost/bifrost.h

index 38c85c853fbf63cac523fab6c0fd94c0cf336c83..89344ae062ffc9e7e0dbbcf8fc324b40a5e24cfc 100644 (file)
@@ -483,6 +483,18 @@ struct bifrost_dual_tex_ctrl {
         unsigned unk1 : 22;
 } __attribute__((packed));
 
+#define BIFROST_ADD_OP_TEX_COMPACT_F32 (0x0b000 >> 10)
+#define BIFROST_ADD_OP_TEX_COMPACT_F16 (0x1b000 >> 10)
+
+struct bifrost_tex_compact {
+        unsigned src0 : 3;
+        unsigned src1 : 3;
+        unsigned tex_index : 3;
+        unsigned unknown : 1;
+        unsigned sampler_index : 3;
+        unsigned op   : 7;
+} __attribute__((packed));
+
 enum branch_bit_size {
         BR_SIZE_32 = 0,
         BR_SIZE_16XX = 1,