mesa: new _mesa_prepare_mipmap_levels() function for mipmap generation
authorBrian Paul <brianp@vmware.com>
Thu, 24 Mar 2016 17:24:33 +0000 (11:24 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 30 Mar 2016 00:13:45 +0000 (18:13 -0600)
commit105fe527840ed5fc55e78c4561915fbe1fded76c
tree1ef565a326e9b11e3a19c86878168652d47812ed
parentd4a5a61d445e683c20de00c1febe847b4c2db910
mesa: new _mesa_prepare_mipmap_levels() function for mipmap generation

Simplifies the loops in generate_mipmap_uncompressed() and
generate_mipmap_compressed().  Will be used in the state tracker too.
Could probably be used in the meta code.  If so, some additional
clean-ups can be done after that.

v2: use unsigned types instead of GLuint, per Ian

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/main/mipmap.c
src/mesa/main/mipmap.h