From 884f8699925b51f7032b4cd0e8d6ef1a8d48bc8c Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 30 Apr 2020 16:17:04 -0400 Subject: [PATCH] panfrost: Fix texture field size I have to imagine this was UB. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/include/panfrost-job.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? */ -- 2.30.2