intel: Remove num_mapped_regions tracking.
authorEric Anholt <eric@anholt.net>
Sun, 27 Jan 2013 21:57:15 +0000 (08:57 +1100)
committerEric Anholt <eric@anholt.net>
Wed, 6 Mar 2013 00:02:38 +0000 (16:02 -0800)
The point of tracking the value was removed in February 2012
(65b096aeddd9b45ca038f44cc9adfff86c8c48b2), and this should have
been removed at the same time.

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

index 42db5a7..3d2d3ef 100644 (file)
@@ -325,14 +325,6 @@ struct intel_context
     */
    bool is_front_buffer_reading;
 
-   /**
-    * Count of intel_regions that are mapped.
-    *
-    * This allows us to assert that no batch buffer is emitted if a
-    * region is mapped.
-    */
-   int num_mapped_regions;
-
    bool use_texture_tiling;
    bool use_early_z;
 
index 049af43..cfd5bb9 100644 (file)
@@ -140,10 +140,6 @@ intel_region_map(struct intel_context *intel, struct intel_region *region,
 
       region->map = region->bo->virtual;
    }
-   if (region->map) {
-      intel->num_mapped_regions++;
-      region->map_refcount++;
-   }
 
    return region->map;
 }
@@ -159,8 +155,6 @@ intel_region_unmap(struct intel_context *intel, struct intel_region *region)
         drm_intel_bo_unmap(region->bo);
 
       region->map = NULL;
-      --intel->num_mapped_regions;
-      assert(intel->num_mapped_regions >= 0);
    }
 }