mesa/main: Modify generate_mipmap_compressed to cope with float textures
authorNeil Roberts <neil@linux.intel.com>
Fri, 25 Jul 2014 16:38:22 +0000 (17:38 +0100)
committerNeil Roberts <neil@linux.intel.com>
Tue, 12 Aug 2014 17:23:50 +0000 (18:23 +0100)
commit88a8830390c8c7557d2e852dcef94ae6f04eb6b5
tree1f001e59cf5d38f0a924ad3db746c59f0bc7cccc
parent17cde55c538009764207bd29b78a909d2c5d14b4
mesa/main: Modify generate_mipmap_compressed to cope with float textures

Once we add BPTC texture support we will need to generate mipmaps for
compressed floating point textures too. Most of the code seems to already be
there but it just needs a few extra lines to get it to use GL_FLOAT instead of
GL_UNSIGNED_BYTE as the type for the temporary buffers.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/mipmap.c