i965/blorp: Pass image formats seperately from the miptree
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 3 Sep 2014 20:53:33 +0000 (13:53 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 5 Sep 2014 17:45:27 +0000 (10:45 -0700)
commit7599886b26853163ef354476be70aa7fd9ae35c5
treec9480ad018f5e4bf338ec585e8b3a330e79df807
parent87472ae58cf2a5c812630f4eabd485931d243e0c
i965/blorp: Pass image formats seperately from the miptree

When a texture is wrapped in a texture view, we can't trust the format in
the miptree itself.  This patch allows us to pass the format seperately
through blorp so we can proprerly handled wrapped textures.

It's worth noting here that we can use the miptree format directly for
depth/stencil formats because they cannot be reinterpreted by a texture
view.

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
CC: "10.3" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_blorp.cpp
src/mesa/drivers/dri/i965/brw_blorp.h
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
src/mesa/drivers/dri/i965/intel_mipmap_tree.c