i965: Finalize miptrees before prepare_texture
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 26 May 2017 17:57:33 +0000 (10:57 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 5 Jun 2017 16:26:22 +0000 (09:26 -0700)
commit708664159e18487b6676fd5b4c33f52003f81d9e
tree0cf1ec711f6e50e5c7d9f327d602a1c0213da1c9
parent9275b2233ffb185b791840c9a3289c477c47b726
i965: Finalize miptrees before prepare_texture

In order to do resolves for texture views with different formats, we
need intel_texture_object::_Format to be valid.  Calling
intel_finalize_mipmap_tree can safely be done multiple times in a row
and should be a fairly cheap operation.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_context.c