From 473728a9b9ed0a0952fea2caf2f389f298de07f4 Mon Sep 17 00:00:00 2001 From: Icecream95 Date: Sun, 3 Jan 2021 15:16:55 +1300 Subject: [PATCH] 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 Reviewed-by: Boris Brezillon Reviewed-by: Kenneth Graunke Part-of: --- 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,