[Mesa-dev] [PATCH 0/9] Fixing glGenerateMipmap and other bugs

Marek Olšák maraeo at gmail.com
Sat Mar 15 10:17:50 PDT 2014


This series mainly fixes generation of mipmaps, but there are some other fixes too. Some of the bugs were:

1) glGenerateMipmap(GL_TEXTURE_CUBE_MAP_ARRAY) was unimplemented.

2) The software fallback of glGenerateMipmap(GL_TEXTURE_3D) was broken if the stride != width*bpp;

3) The Mesa state tracker did not correctly implement the MapTextureImage hook to support multiple mappings where each mapping points to a different layer/slice. This is used by _mesa_generate_mipmap, which maps all layers before the mipmap generation is started.

FYI, I have sent a new set of piglit tests to the piglit mailing list. Most importantly, there are new tests for mipmap generation of 1D, 3D, cubemap, and cube array textures, which were missing in piglit.

Please review.

Marek


More information about the mesa-dev mailing list