Module: Mesa
Branch: main
Commit: 46d2748a93d0d6274051490c97e9859c48cbf81a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=46d2748a93d0d6274051490c97e9859c48cbf81a

Author: Boris Brezillon <[email protected]>
Date:   Tue Oct 31 19:37:17 2023 +0100

panfrost: Fix format_minimum_alignment() for v6-

Alignment should be power of two, so I suspect we meant 64 not 63.

Signed-off-by: Boris Brezillon <[email protected]>
Reviewed-by: Erik Faye-Lund <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26221>

---

 src/panfrost/lib/pan_layout.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/panfrost/lib/pan_layout.c b/src/panfrost/lib/pan_layout.c
index b5789e2a7b1..e4a9859c548 100644
--- a/src/panfrost/lib/pan_layout.c
+++ b/src/panfrost/lib/pan_layout.c
@@ -212,7 +212,7 @@ format_minimum_alignment(const struct panfrost_device *dev,
       return 16;
 
    if (dev->arch < 7)
-      return 63;
+      return 64;
 
    switch (format) {
    /* For v7+, NV12/NV21/I420 have a looser alignment requirement of 16 bytes 
*/

Reply via email to