Module: Mesa Branch: master Commit: 884f8699925b51f7032b4cd0e8d6ef1a8d48bc8c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=884f8699925b51f7032b4cd0e8d6ef1a8d48bc8c
Author: Alyssa Rosenzweig <[email protected]> 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 <[email protected]> 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? */ _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
