summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/lima/lima_texture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/lima/lima_texture.h')
-rw-r--r--src/gallium/drivers/lima/lima_texture.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/drivers/lima/lima_texture.h b/src/gallium/drivers/lima/lima_texture.h
index e9b896763ea..7f4b9ee5330 100644
--- a/src/gallium/drivers/lima/lima_texture.h
+++ b/src/gallium/drivers/lima/lima_texture.h
@@ -27,6 +27,9 @@
#define lima_min_tex_desc_size 64
+#define LIMA_TEXTURE_TYPE_2D 2
+#define LIMA_TEXTURE_TYPE_CUBE 5
+
typedef struct __attribute__((__packed__)) {
/* Word 0 */
uint32_t format : 6;
@@ -39,9 +42,9 @@ typedef struct __attribute__((__packed__)) {
/* Word 1-3 */
uint32_t unknown_1_1: 7;
uint32_t unnorm_coords: 1;
- uint32_t unknown_1_2: 2;
- uint32_t texture_2d: 1;
- uint32_t unknown_1_3: 13;
+ uint32_t unknown_1_2: 1;
+ uint32_t texture_type: 3;
+ uint32_t unknown_1_3: 12;
uint32_t miplevels: 4;
uint32_t min_mipfilter_1: 9; /* 0x0 for linear, 0x1ff for nearest */
uint32_t unknown_2_1: 3;