[Mesa-dev] [PATCH] st/mesa: avoid integer overflows with buffers >= 512MB
Glenn Kennard
glenn.kennard at gmail.com
Tue Sep 15 16:39:16 PDT 2015
On Wed, 16 Sep 2015 01:32:10 +0200, Ilia Mirkin <imirkin at alum.mit.edu>
wrote:
> This fixes failures with the newly-submitted max-size texture buffer
> piglit test for GPUs exposing >= 128M max texels.
>
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> Cc: "10.6 11.0" <mesa-stable at lists.freedesktop.org>
> ---
> src/mesa/state_tracker/st_atom_texture.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_atom_texture.c
> b/src/mesa/state_tracker/st_atom_texture.c
> index 31e0f6b..62312af 100644
> --- a/src/mesa/state_tracker/st_atom_texture.c
> +++ b/src/mesa/state_tracker/st_atom_texture.c
> @@ -264,7 +264,7 @@ st_create_texture_sampler_view_from_stobj(struct
> pipe_context *pipe,
> format);
> if (stObj->pt->target == PIPE_BUFFER) {
> - unsigned base, size;
> + uint64_t base, size;
> unsigned f, n;
> const struct util_format_description *desc
> = util_format_description(templ.format);
Tested / Reviewed-by: Glenn Kennard <glenn.kennard at gmail.com>
More information about the mesa-dev
mailing list