r100: Don't assume that the base mipmap of a texture exists
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 24 May 2017 23:36:28 +0000 (16:36 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 1 Jun 2017 04:14:44 +0000 (21:14 -0700)
commit2dcec62075d8da8b7d8741df75b09907e1eea460
tree57a804ae65c3f9a2ce1d1815a5d86b7f388f0355
parentf42fb0012a04576884f7dcf227df640ed60d9655
r100: Don't assume that the base mipmap of a texture exists

Fixes crashes in piglit's gl-1.2-texture-base-level.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/radeon/radeon_texstate.c