From 6b1498f7acaee3326559bdd3b3d46635e6ae60d6 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 15 Jun 2020 12:37:40 -0400 Subject: [PATCH] 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: --- src/panfrost/encoder/pan_texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2