i965/miptree: More conservatively resolve external images
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 13 Jun 2017 21:27:37 +0000 (14:27 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 14 Aug 2017 17:43:30 +0000 (10:43 -0700)
commit51600b848944d6cfafa79c3fd9f3fcf3e98f2bcb
treec29b026558db5487673436fa431409d1a94329cf
parent8f6e54c92966bb94a3f05f2cc7ea804273e125ad
i965/miptree: More conservatively resolve external images

Instead of always doing a full resolve, only resolve the bits that are
needed.  This means that we only do a partial resolve when the miptree
modifier is I915_FORMAT_MOD_Y_TILED_CCS.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h