Mesa (master): panfrost: Make the width argument to panfrost_new_texture 32 bits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jan 12 19:25:10 UTC 2021


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

Author: Icecream95 <ixn at disroot.org>
Date:   Sun Jan  3 15:16:55 2021 +1300

panfrost: Make the width argument to panfrost_new_texture 32 bits

This is needed to represent a width of exactly 65536, which is
required by ARB_texture_buffer_object.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon at collabora.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8300>

---

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

diff --git a/src/panfrost/lib/pan_texture.c b/src/panfrost/lib/pan_texture.c
index 16dfc5b5783..ae8183ea75f 100644
--- a/src/panfrost/lib/pan_texture.c
+++ b/src/panfrost/lib/pan_texture.c
@@ -402,7 +402,7 @@ void
 panfrost_new_texture(const struct panfrost_device *dev,
                      const struct pan_image_layout *layout,
                      void *out,
-                     uint16_t width, uint16_t height,
+                     unsigned width, uint16_t height,
                      uint16_t depth, uint16_t array_size,
                      enum pipe_format format,
                      enum mali_texture_dimension dim,
diff --git a/src/panfrost/lib/pan_texture.h b/src/panfrost/lib/pan_texture.h
index ba6f3fbf648..975ffd2ebf2 100644
--- a/src/panfrost/lib/pan_texture.h
+++ b/src/panfrost/lib/pan_texture.h
@@ -134,7 +134,7 @@ void
 panfrost_new_texture(const struct panfrost_device *dev,
                      const struct pan_image_layout *layout,
                      void *out,
-                     uint16_t width, uint16_t height,
+                     unsigned width, uint16_t height,
                      uint16_t depth, uint16_t array_size,
                      enum pipe_format format,
                      enum mali_texture_dimension dim,



More information about the mesa-commit mailing list