diff options
author | Anuj Phogat <anuj.phogat@gmail.com> | 2012-01-25 19:05:45 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2012-02-09 13:16:07 -0800 |
commit | b2b5d6b8fb839cb93173f2d59475ff1d4ba60494 (patch) | |
tree | afca42e0e6ec8c83a1b77c3701b89ed8c4238a5e /docs/relnotes-8.0.html | |
parent | e86d90eb208292916c8a04c5d75499492003dd16 (diff) |
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>
(cherry picked from commit ea228d97f811092b9ffcb90565184a7a8f089477)
Diffstat (limited to 'docs/relnotes-8.0.html')
0 files changed, 0 insertions, 0 deletions