.swizzle = panfrost_translate_swizzle_4(user_swizzle)
};
- texture_descriptor.nr_mipmap_levels = last_level - first_level;
+ texture_descriptor.levels = last_level - first_level;
so->hw = texture_descriptor;
uint8_t unknown3A;
/* Zero for non-mipmapped, (number of levels - 1) for mipmapped */
- uint8_t nr_mipmap_levels;
+ uint8_t levels;
/* Swizzling is a single 32-bit word, broken up here for convenience.
* Here, swizzling refers to the ES 3.0 texture parameters for channel
if (t->array_size)
pandecode_log_cont("[%u]", t->array_size + 1);
- pandecode_log_cont("\n");
+ if (t->levels)
+ pandecode_log_cont(" mip %u", t->levels);
- pandecode_prop("nr_mipmap_levels = %" PRId8, t->nr_mipmap_levels);
+ pandecode_log_cont("\n");
pandecode_log(".format = {\n");
pandecode_indent++;
* properties, but dump extra
* possibilities to futureproof */
- int bitmap_count = MALI_NEGATIVE(t->nr_mipmap_levels);
+ int bitmap_count = MALI_NEGATIVE(t->levels);
bool manual_stride = f.usage2 & MALI_TEX_MANUAL_STRIDE;
/* Miptree for each face */