summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-06-05 15:14:15 +0000
committerEric Anholt <eric@anholt.net>2009-06-09 15:21:16 -0700
commit2d57e9640819c7889304d1de9dd5500a1a0f66de (patch)
treece2e46b12a215aa15121a08da1866bbe13779036 /src/mesa/drivers/dri
parenta03b349153660e449daf4f56d750f1caef23b1a5 (diff)
intel: Fix intel_region_unmap to do unmap, not map.
Thanks to Shuang He for catching this.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/intel/intel_regions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_regions.c b/src/mesa/drivers/dri/intel/intel_regions.c
index fd9bf7b174..49bcb3c1dd 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;