mesa: Move compute_num_levels from st_gen_mipmap.c to mipmap.c.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 19 Jun 2016 07:36:48 +0000 (00:36 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 16 Feb 2018 18:48:10 +0000 (10:48 -0800)
commit9bcd31ea90addd7a16802de8a28b2f3242dc8298
tree881bc896089ffb72bfe5713f5585b6ec42de1e55
parent03ab40b1f7bbff7f1c6ba128e202bdf31352ea66
mesa: Move compute_num_levels from st_gen_mipmap.c to mipmap.c.

I want to use compute_num_levels inside i965.  Rather than duplicating
it, move it from mesa/st to core Mesa, and make it non-static.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/mipmap.c
src/mesa/main/mipmap.h
src/mesa/state_tracker/st_gen_mipmap.c