st/mesa: move mipmap allocation check logic into a function
authorBrian Paul <brianp@vmware.com>
Thu, 17 Dec 2015 21:06:11 +0000 (14:06 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 6 Jan 2016 22:53:46 +0000 (15:53 -0700)
commitc032ae85ee1581870a34f5faad76e5b7ddaf4090
tree3119c0e393c4ab0b2fd2ecb2ede90f0b7c986883
parent0d39b5fc3b5ca186814a23c07987570800aa17ec
st/mesa: move mipmap allocation check logic into a function

Better readability and easier to extend.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/state_tracker/st_cb_texture.c