i965/miptree: Add new entrypoints for resolve management
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 25 May 2017 05:09:30 +0000 (22:09 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 8 Jun 2017 05:18:53 +0000 (22:18 -0700)
commit5ec344e42056c14417ec423be61e3715fae7b626
tree49a9b639aee3e603ffe24ccdf23bf9bd6b8bbde7
parenta59c7f834c6face332ec8240b9af709f35fa9bd1
i965/miptree: Add new entrypoints for resolve management

This commit adds a new unified interface for doing resolves.  The basic
format is that, prior to any surface access such as texturing or
rendering, you call intel_miptree_prepare_access.  If the surface was
written, you call intel_miptree_finish_write.  These two functions take
parameters which tell them whether or not auxiliary compression and fast
clears are supported on the surface.  Later commits will add wrappers
around these two functions for texturing, rendering, etc.

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