Mesa (master): panfrost: Fix texture field size

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri May 1 00:49:38 UTC 2020


Module: Mesa
Branch: master
Commit: 884f8699925b51f7032b4cd0e8d6ef1a8d48bc8c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=884f8699925b51f7032b4cd0e8d6ef1a8d48bc8c

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Thu Apr 30 16:17:04 2020 -0400

panfrost: Fix texture field size

I have to imagine this was UB.

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

---

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



More information about the mesa-commit mailing list