mesa/src
Anuj Phogat ea228d97f8 mesa: fix maximum allowed proxy texture size condition
width, height parameter in glTexImage2D() includes: texture image
width + 2 * border (if any). So when doing the texture size check
in _mesa_test_proxy_teximage() width and height should not exceed
maximum supported size for target texture type + 2 * border.
i.e. 1 << (ctx->Const.MaxTextureLevels - 1) + 2 * border

Texture border is anyway stripped out before it is given to intel
or gallium drivers.

This patch fixes Intel oglconform test case:
max_values negative.textureSize.textureCube
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44970

Note: This is a candidate for mesa 8.0 branch.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Ian Romanick <idr@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-02-09 11:59:38 -08:00
..
egl add wayland cflags when building wayland-egl 2012-01-29 16:51:27 +01:00
gallium gallium: add PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 2012-02-09 15:01:34 +01:00
gbm gbm: Add back link flags for udev, dl and glapi 2012-01-26 13:23:25 +01:00
getopt getopt: Make code more portable. 2011-01-12 16:54:21 +00:00
glsl glsl: Fix Android build 2012-02-08 15:17:12 -08:00
glu scons: Add Haiku build support 2012-01-17 20:01:14 +00:00
glx dri: Emit a critical error if the swrast driver fails to load. 2012-02-08 17:07:53 -08:00
mapi mapi/glapi: Never use a generic no-op entry-point on Windows. 2012-02-02 14:45:24 +00:00
mesa mesa: fix maximum allowed proxy texture size condition 2012-02-09 11:59:38 -08:00
Makefile
SConscript scons: Add Haiku build support 2012-01-17 20:01:14 +00:00