mesa/src
Brian Paul 0bcad02955 llvmpipe: fix overflow bug in total texture size computation
v2: use uint64_t for the total_size variable, per Jose.

Also add two earlier checks for exceeding the max texture size.
For example a 1K^3 RGBA volume would overflow the lpr->image_stride
variable.

Use simple algebra to avoid overflow in intermediate values.
So instead of "x * y > z" use "x > z / y".

This should work if we happen to be on a platform that doesn't have
64-bit types.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2012-09-20 09:47:09 -06:00
..
egl Use calloc instead of malloc/memset-0 2012-09-05 22:28:50 -07:00
gallium llvmpipe: fix overflow bug in total texture size computation 2012-09-20 09:47:09 -06:00
gbm dri: Rework planar image interface 2012-08-31 19:51:02 +02:00
getopt
glsl glsl: make _mesa_builtin_uniform_desc static 2012-09-18 07:57:42 +10:00
glx glx: move 'prime' var into #ifdef'd code block 2012-09-06 18:58:49 -06:00
gtest build: Fix gtest out-of-tree build 2012-08-14 10:54:39 -07:00
mapi glapi/glx: rename 'table' variable to 'disp_table' 2012-09-06 18:58:49 -06:00
mesa mesa: Allow glGetTexParameter of GL_TEXTURE_SRGB_DECODE_EXT 2012-09-20 11:42:56 +02:00
.gitignore automake: Convert src/Makefile to automake. 2012-06-11 09:28:00 -07:00
Makefile.am automake: Convert src/Makefile to automake. 2012-06-11 09:28:00 -07:00
SConscript Remove libGLU 2012-08-31 10:58:15 -07:00