st/mesa: use surface format to generate mipmaps when available
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 14 Jan 2016 18:44:54 +0000 (13:44 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 14 Jan 2016 19:28:04 +0000 (14:28 -0500)
commite94ef885bb71b46aba4517523ebb63c0d4b36c4b
tree9f3f53b2f7c599491813ea81d9c09e467dd34a0e
parentdc96a18d24409102e36cdfd7de0552f66c3925bf
st/mesa: use surface format to generate mipmaps when available

This fixes the recently posted mipmap + texture views piglit test.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/state_tracker/st_gen_mipmap.c