aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}
}