mesa: Reuse _mesa_max_texture_levels() instead of open-coding it.
authorEric Anholt <eric@anholt.net>
Wed, 1 May 2019 21:13:18 +0000 (14:13 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 13 May 2019 19:02:59 +0000 (12:02 -0700)
commitd88f3392fff7c6342f3840c4bd8195a1296c2372
tree8efeeeeb76348773a0c0c573e456ff54c9769128
parent20b42fad9b705f59b2467226abac299a7d473920
mesa: Reuse _mesa_max_texture_levels() instead of open-coding it.

The shared function has some extension presence checks, but other than
that has the same switch statement contents.

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