intel: Transition intel_region_map() to being a miptree operation.
authorEric Anholt <eric@anholt.net>
Sun, 27 Jan 2013 22:14:42 +0000 (09:14 +1100)
committerEric Anholt <eric@anholt.net>
Wed, 6 Mar 2013 00:02:38 +0000 (16:02 -0800)
commit7604debabb8d301e48b6b8b10e3888edff5b8fe2
tree3c8433e3e2dec8b20aacd6ee38b2027dc64663db
parentf4f288f317d863e141acc94431e3f54c930e1784
intel: Transition intel_region_map() to being a miptree operation.

I'm trying to move us away from the region structure, and all the
callers are currently dereferencing a miptree to get the region.

In this change, the map_refcount is dropped.  However, the bo->virtual is
itself map refcounted, so that's already dealt with.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.h
src/mesa/drivers/dri/intel/intel_regions.c
src/mesa/drivers/dri/intel/intel_regions.h
src/mesa/drivers/dri/intel/intel_tex_validate.c