[Mesa-dev] [PATCH 04/10] intel: Remove num_mapped_regions tracking.
Eric Anholt
eric at anholt.net
Mon Jan 28 21:00:32 PST 2013
The point of tracking the value was removed in February 2012
(65b096aeddd9b45ca038f44cc9adfff86c8c48b2), and this should have
been removed at the same time.
---
src/mesa/drivers/dri/intel/intel_context.h | 8 --------
src/mesa/drivers/dri/intel/intel_regions.c | 6 ------
2 files changed, 14 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_context.h b/src/mesa/drivers/dri/intel/intel_context.h
index 2643a0c..b051f7c 100644
--- a/src/mesa/drivers/dri/intel/intel_context.h
+++ b/src/mesa/drivers/dri/intel/intel_context.h
@@ -314,14 +314,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 2efe724..c4d4693 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);
}
}
--
1.7.10.4
More information about the mesa-dev
mailing list