descriptor->format_unk = 0x2;
descriptor->type = type;
- descriptor->format_unk2 = 0x100;
descriptor->format = mali_format;
descriptor->srgb = (desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB);
descriptor->format_unk3 = 0x0;
struct bifrost_texture_descriptor {
unsigned format_unk : 4; /* 2 */
enum mali_texture_type type : 2;
- unsigned format_unk2 : 16; /* 0 */
+ unsigned zero : 4;
+ unsigned format_swizzle : 12;
enum mali_format format : 8;
unsigned srgb : 1;
unsigned format_unk3 : 1; /* 0 */
pandecode_prop("format_unk = 0x%" PRIx32, t->format_unk);
pandecode_prop("type = %" PRId32, t->type);
- pandecode_prop("format_unk2 = 0x%" PRIx32, t->format_unk2);
+
+ if (t->zero) {
+ pandecode_msg("XXX: zero tripped\n");
+ pandecode_prop("zero = 0x%" PRIx32, t->zero);
+ }
+
+ pandecode_prop("format_swizzle = 0x%" PRIx32, t->format_swizzle);
pandecode_prop("format = 0x%" PRIx32, t->format);
pandecode_prop("srgb = 0x%" PRIx32, t->srgb);
pandecode_prop("format_unk3 = 0x%" PRIx32, t->format_unk3);