Module: Mesa
Branch: master
Commit: 6b1498f7acaee3326559bdd3b3d46635e6ae60d6
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b1498f7acaee3326559bdd3b3d46635e6ae60d6

Author: Alyssa Rosenzweig <[email protected]>
Date:   Mon Jun 15 12:37:40 2020 -0400

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 <[email protected]>
Tested-by: Christian Hewitt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5474>

---

 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;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to