panfrost: Fix texture field size

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>
This commit is contained in:
Alyssa Rosenzweig 2020-04-30 16:17:04 -04:00 committed by Marge Bot
parent d04be375cc
commit 884f869992

View 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? */