From: Alyssa Rosenzweig Date: Mon, 15 Jun 2020 16:37:40 +0000 (-0400) Subject: panfrost: Fix level_2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b1498f7acaee3326559bdd3b3d46635e6ae60d6;p=mesa.git panfrost: Fix level_2 We're not sure what this is but I've always seen it equal to levels. Signed-off-by: Alyssa Rosenzweig Tested-by: Christian Hewitt Part-of: --- diff --git a/src/panfrost/encoder/pan_texture.c b/src/panfrost/encoder/pan_texture.c index cfd66c78c43..59c08097196 100644 --- a/src/panfrost/encoder/pan_texture.c +++ b/src/panfrost/encoder/pan_texture.c @@ -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;