panfrost: Fix texture field size
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 30 Apr 2020 20:17:04 +0000 (16:17 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 1 May 2020 00:27:23 +0000 (00:27 +0000)
I have to imagine this was UB.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4844>

src/panfrost/include/panfrost-job.h

index 924c4e455188cf62362d9321185e0a7d356e7812..051fe27a5af7e251a13219539c30c91422727759 100644 (file)
@@ -1264,7 +1264,7 @@ struct bifrost_texture_descriptor {
         unsigned swizzle : 12;
         enum mali_texture_layout layout : 4;
         uint8_t levels : 8; /* Number of levels-1 if mipmapped, 0 if not */
-        unsigned unk1 : 4;
+        unsigned unk1 : 8;
 
         unsigned levels_unk : 24; /* 0 */
         unsigned level_2 : 8; /* Number of levels, again? */