intel: Refactor use of intel_miptree_map
authorChad Versace <chad.versace@linux.intel.com>
Sat, 28 Jul 2012 02:39:10 +0000 (19:39 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 7 Aug 2012 16:30:33 +0000 (09:30 -0700)
commit4c0ccc13bd3ec149c4a51c4937811894fbe713f0
treed1a3bfd8a24f82c1fb4ec22348816abb802138b3
parent81980958d0d3def26741cfe78b7c23f6635f826a
intel: Refactor use of intel_miptree_map

Move the opencoded construction and destruction of intel_miptree_map into
new functions, intel_miptree_attach_map and intel_miptree_release_map.
This patch prevents code duplication in a future commit that adds support
for mapping multisample miptrees.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c