From: Alyssa Rosenzweig Date: Thu, 30 Apr 2020 20:17:04 +0000 (-0400) Subject: panfrost: Fix texture field size X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=884f8699925b51f7032b4cd0e8d6ef1a8d48bc8c;p=mesa.git panfrost: Fix texture field size I have to imagine this was UB. Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/include/panfrost-job.h b/src/panfrost/include/panfrost-job.h index 924c4e45518..051fe27a5af 100644 --- a/src/panfrost/include/panfrost-job.h +++ b/src/panfrost/include/panfrost-job.h @@ -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? */