intel: Fix intel_region_unmap to do unmap, not map.
authorEric Anholt <eric@anholt.net>
Fri, 5 Jun 2009 15:14:15 +0000 (15:14 +0000)
committerEric Anholt <eric@anholt.net>
Tue, 9 Jun 2009 22:21:16 +0000 (15:21 -0700)
Thanks to Shuang He for catching this.

src/mesa/drivers/dri/intel/intel_regions.c

index fd9bf7b17410f768165d3e24f178d133e05f9875..49bcb3c1ddd04f91f48471dbaf28512f020d1ecc 100644 (file)
@@ -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;