Mesa (master): pan/bi: Structify TEX compact
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Apr 22 01:16:16 UTC 2020
Module: Mesa
Branch: master
Commit: bfc06b10dea5a85f64a0c7d12f2c9e748c71d756
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bfc06b10dea5a85f64a0c7d12f2c9e748c71d756
Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date: Tue Apr 21 16:08:41 2020 -0400
pan/bi: Structify TEX compact
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4671>
---
src/panfrost/bifrost/bifrost.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h
index 38c85c853fb..89344ae062f 100644
--- a/src/panfrost/bifrost/bifrost.h
+++ b/src/panfrost/bifrost/bifrost.h
@@ -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,
More information about the mesa-commit
mailing list