summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-01-28 08:57:15 +1100
committerEric Anholt <[email protected]>2013-03-05 16:02:38 -0800
commitf4f288f317d863e141acc94431e3f54c930e1784 (patch)
tree4fadfa59a95f6e76e8797521bddc6541a7442969 /src/mesa
parent3c9532314c6d1bd0dd9ce0e0ee58925569c450ee (diff)
intel: Remove num_mapped_regions tracking.
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 <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/intel/intel_context.h8
-rw-r--r--src/mesa/drivers/dri/intel/intel_regions.c6
2 files changed, 0 insertions, 14 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_context.h b/src/mesa/drivers/dri/intel/intel_context.h
index 42db5a7d96d..3d2d3efcf44 100644
--- a/src/mesa/drivers/dri/intel/intel_context.h
+++ b/src/mesa/drivers/dri/intel/intel_context.h
@@ -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;
diff --git a/src/mesa/drivers/dri/intel/intel_regions.c b/src/mesa/drivers/dri/intel/intel_regions.c
index 049af43ca9f..cfd5bb9a5fd 100644
--- a/src/mesa/drivers/dri/intel/intel_regions.c
+++ b/src/mesa/drivers/dri/intel/intel_regions.c
@@ -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);
}
}