softpipe: use 64-bit arithmetic in softpipe_resource_layout()
authorBrian Paul <brianp@vmware.com>
Sat, 1 Mar 2014 19:14:15 +0000 (12:14 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 3 Mar 2014 17:41:42 +0000 (10:41 -0700)
commit465b2c42bca59f0f198aeb8543cfabd5989584b4
treeb999b5e32b1d77824eb9c6ff78b799c7f9f12c1e
parent070036ca399d88293ef51b40e859c06acf0c7606
softpipe: use 64-bit arithmetic in softpipe_resource_layout()

To avoid 32-bit integer overflow for large textures.  Note: we're
already doing this in llvmpipe.

Cc: "10.0" "10.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/softpipe/sp_texture.c