diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-04-21 16:08:41 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-22 01:01:17 +0000 |
commit | bfc06b10dea5a85f64a0c7d12f2c9e748c71d756 (patch) | |
tree | b9f45e90e6cc6f4d6a4cc3a46626177cdb311650 /src/panfrost | |
parent | cf7b952308a349994a24ea27b56e8fc5ae37a70f (diff) |
pan/bi: Structify TEX compact
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4671>
Diffstat (limited to 'src/panfrost')
-rw-r--r-- | src/panfrost/bifrost/bifrost.h | 12 |
1 files changed, 12 insertions, 0 deletions
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, |