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

Author: Alyssa Rosenzweig <[email protected]>
Date:   Wed May  4 09:38:20 2022 -0400

panfrost: Fix is_wide return type

By inspection.

Fixes: e4ee2c213a0 ("panfrost: Extract panfrost_afbc_is_wide helper")
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16697>

---

 src/panfrost/lib/pan_layout.c  | 2 +-
 src/panfrost/lib/pan_texture.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/panfrost/lib/pan_layout.c b/src/panfrost/lib/pan_layout.c
index 2c414b52954..b78a90493a0 100644
--- a/src/panfrost/lib/pan_layout.c
+++ b/src/panfrost/lib/pan_layout.c
@@ -94,7 +94,7 @@ panfrost_afbc_superblock_height(uint64_t modifier)
  * defined as superblocks wider than 16 pixels, the minimum (and default) super
  * block width.
  */
-unsigned
+bool
 panfrost_afbc_is_wide(uint64_t modifier)
 {
         return panfrost_afbc_superblock_width(modifier) > 16;
diff --git a/src/panfrost/lib/pan_texture.h b/src/panfrost/lib/pan_texture.h
index c8c896929b1..4cf9e6cd36c 100644
--- a/src/panfrost/lib/pan_texture.h
+++ b/src/panfrost/lib/pan_texture.h
@@ -192,7 +192,7 @@ unsigned panfrost_afbc_superblock_width(uint64_t modifier);
 
 unsigned panfrost_afbc_superblock_height(uint64_t modifier);
 
-unsigned panfrost_afbc_is_wide(uint64_t modifier);
+bool panfrost_afbc_is_wide(uint64_t modifier);
 
 uint32_t pan_afbc_row_stride(uint64_t modifier, uint32_t width);
 

Reply via email to