st/mesa: fix incorrect texture size allocation in st_finalize_texture()
authorBrian Paul <brianp@vmware.com>
Mon, 21 Feb 2011 22:11:44 +0000 (15:11 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 21 Feb 2011 22:15:53 +0000 (15:15 -0700)
commit7dbafea860dace9bfad29760f8b756122bc9937a
treed4ca06e655dfa74d6aaa3486a55c03f92b6cddd5
parent4cdcec08d14a0709b09dc82a35367b2bcc817957
st/mesa: fix incorrect texture size allocation in st_finalize_texture()

If finalizing a non-POW mipmapped texture with an odd-sized base texture
image we were allocating the wrong size of gallium texture (off by one).
Need to be more careful about computing the base texture image size.

This fixes https://bugs.freedesktop.org/show_bug.cgi?id=34463
src/mesa/state_tracker/st_cb_texture.c