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@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8300>
This commit is contained in:
Icecream95 2021-01-03 15:16:55 +13:00 committed by Marge Bot
parent b9ecbc3272
commit 473728a9b9
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,