mesa/src
Nicolai Hähnle c03b4444d1 st/mesa: use base level size as "guess" when available
When an applications specifies mip levels _before_ setting a mipmap texture
filter, we will initially guess a single texture level. When the second level
image is created, we try to allocate the full texture -- however, we get the
base level size guess wrong if that size is odd. This leads to yet another
re-allocation of the texture later during st_finalize_texture.

Even worse, this re-allocation breaks a (reasonable) assumption made by
st_generate_mipmaps, because the re-allocation in the finalization call will
again allocate a single-level pipe texture (based on the non-mipmap texture
filter!). As a result, mipmap generation fails in interesting ways.

All of this can be avoided by just using the fact that we already know the
size of the base level.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95529
Cc: 12.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 42624ea837)
2016-06-14 15:48:40 +01:00
..
compiler glsl: geom shader max_vertices layout must match. 2016-06-14 15:48:38 +01:00
egl egl: android: don't add the image loader extension for !render_node 2016-06-07 12:35:40 +01:00
gallium vl/dri3: support receiving new pixmap for front buffer 2016-06-14 15:48:39 +01:00
gbm gbm: remove define _DEFAULT_SOURCE 2016-05-23 12:09:11 +01:00
getopt
glx glx: fix crash with bad fbconfig 2016-06-14 15:48:39 +01:00
gtest
hgl
intel anv: Remove the PhysicalDeviceLimits FINISHME 2016-06-14 15:48:40 +01:00
loader loader: add a libdrm case for loader_get_device_name_for_fd 2016-04-21 14:41:41 +01:00
mapi mapi: expose new functions in GL ES 3.2 2016-05-26 21:25:53 -04:00
mesa st/mesa: use base level size as "guess" when available 2016-06-14 15:48:40 +01:00
util mesa: Add .gitignore entries for make check binaries 2016-05-25 09:41:44 -07:00
Makefile.am mesa: automake: distclean git_sha1.h when building OOT 2016-06-07 12:35:53 +01:00
SConscript glsl: move to compiler/ 2016-01-26 16:08:33 +00:00