st/mesa: avoid integer overflows with buffers >= 512MB
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 15 Sep 2015 23:32:10 +0000 (19:32 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 16 Sep 2015 16:51:58 +0000 (12:51 -0400)
commiteb081681df248750727a8a76436760d617b4a6a9
treeaa46019ab0d6efc10b064cc87d5cc116fcc6c522
parent1aff899a874abddc2d79e595242a233e874e4a96
st/mesa: avoid integer overflows with buffers >= 512MB

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@alum.mit.edu>
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Glenn Kennard <glenn.kennard@gmail.com>
src/mesa/state_tracker/st_atom_texture.c