i965: Record mipmap resolver for unmapping
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Apr 2018 17:25:46 +0000 (10:25 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Apr 2018 21:06:23 +0000 (14:06 -0700)
commit682bdaa658d63993e32f95a4244568aeab85642a
treebd94ac522e4325698ad4d5a66cb8d5e89c51294c
parent5367295e1aaca56e77207bdfd7b0a578573796b6
i965: Record mipmap resolver for unmapping

When mapping a region of the mipmap_tree, record which complementary
method to use to unmap it afterwards. By doing so we can avoid
duplicating the decision tree used when mapping and thereby eliminate
trivial errors that can be introduced if the two if-chains become out of
sync.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h