From f4f288f317d863e141acc94431e3f54c930e1784 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 28 Jan 2013 08:57:15 +1100 Subject: [PATCH] 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 --- 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 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); } } -- 2.30.2