Commit eb25c5bf authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Expand nr_mipmap_levels

parent 62ff2e00
......@@ -486,7 +486,13 @@ struct mali_texture_descriptor {
uint32_t format1;
uint32_t unknown3;
uint16_t unknown3;
/* One for non-mipmapped, zero for mipmapped */
uint8_t unknown3A;
/* Zero for non-mipmapped, (number of levels - 1) for mipmapped */
uint8_t nr_mipmap_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
......
......@@ -799,7 +799,9 @@ panwrap_replay_vertex_or_tiler_job_mdg(const struct mali_job_descriptor_header *
panwrap_prop("height = MALI_POSITIVE(%" PRId16 ")", t->height + 1);
panwrap_prop("depth = MALI_POSITIVE(%" PRId16 ")", t->depth + 1);
panwrap_prop("unknown1 = 0x%" PRIx32, t->unknown1);
panwrap_prop("unknown3 = %" PRId16, t->unknown3);
panwrap_prop("unknown3A = %" PRId8, t->unknown3A);
panwrap_prop("nr_mipmap_levels = %" PRId8, t->nr_mipmap_levels);
/* TODO: I don't understand how this works at all yet */
panwrap_prop("format1 = 0x%" PRIx32, t->format1);
......
......@@ -1579,7 +1579,9 @@ panfrost_create_sampler_view(
.swizzle_b = trans_translate_texture_swizzle(template->swizzle_b),
.swizzle_a = trans_translate_texture_swizzle(template->swizzle_a),
.unknown3 = 0x10000,
/* Non-mipmapped */
.unknown3A = 1,
.nr_mipmap_levels = 0
};
so->hw = texture_descriptor;
......
......@@ -157,7 +157,7 @@ int main(int argc, const char **argv)
0, 2,
texs);
for (int i = 0; i < 60; ++i) {
for (int i = 0; i < 300; ++i) {
const struct pipe_rasterizer_state stat = {
.line_width = 10.0f,
.front_ccw = false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment