From: Eric Anholt Date: Fri, 5 Jun 2009 15:14:15 +0000 (+0000) Subject: intel: Fix intel_region_unmap to do unmap, not map. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d57e9640819c7889304d1de9dd5500a1a0f66de;p=mesa.git intel: Fix intel_region_unmap to do unmap, not map. Thanks to Shuang He for catching this. --- diff --git a/src/mesa/drivers/dri/intel/intel_regions.c b/src/mesa/drivers/dri/intel/intel_regions.c index fd9bf7b1741..49bcb3c1ddd 100644 --- a/src/mesa/drivers/dri/intel/intel_regions.c +++ b/src/mesa/drivers/dri/intel/intel_regions.c @@ -132,7 +132,7 @@ intel_region_unmap(struct intel_context *intel, struct intel_region *region) _DBG("%s %p\n", __FUNCTION__, region); if (!--region->map_refcount) { if (intel->intelScreen->kernel_exec_fencing) - drm_intel_gem_bo_map_gtt(region->buffer); + drm_intel_gem_bo_unmap_gtt(region->buffer); else dri_bo_unmap(region->buffer); region->map = NULL;