panfrost: Fix level_2
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 15 Jun 2020 16:37:40 +0000 (12:37 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 15 Jun 2020 21:41:18 +0000 (21:41 +0000)
We're not sure what this is but I've always seen it equal to levels.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Christian Hewitt <christianshewitt@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5474>

src/panfrost/encoder/pan_texture.c

index cfd66c78c43c1aab64152e10e3f8be451f10f100..59c0809719603fb2590af526d0b6563794d7024f 100644 (file)
@@ -345,7 +345,7 @@ panfrost_new_texture_bifrost(
         descriptor->levels = last_level - first_level;
         descriptor->unk1 = 0x0;
         descriptor->levels_unk = 0;
-        descriptor->level_2 = 0;
+        descriptor->level_2 = last_level - first_level;
         descriptor->payload = payload->gpu;
         descriptor->array_size = MALI_POSITIVE(array_size);
         descriptor->unk4 = 0x0;