mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 11:30:11 +01:00
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:
parent
d04be375cc
commit
884f869992
1 changed files with 1 additions and 1 deletions
|
|
@ -1264,7 +1264,7 @@ struct bifrost_texture_descriptor {
|
||||||
unsigned swizzle : 12;
|
unsigned swizzle : 12;
|
||||||
enum mali_texture_layout layout : 4;
|
enum mali_texture_layout layout : 4;
|
||||||
uint8_t levels : 8; /* Number of levels-1 if mipmapped, 0 if not */
|
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 levels_unk : 24; /* 0 */
|
||||||
unsigned level_2 : 8; /* Number of levels, again? */
|
unsigned level_2 : 8; /* Number of levels, again? */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue