i915: Remove left-over drmUnmap()
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 11 Feb 2010 21:34:11 +0000 (16:34 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 11 Feb 2010 21:34:11 +0000 (16:34 -0500)
src/mesa/drivers/dri/intel/intel_regions.c
src/mesa/drivers/dri/intel/intel_regions.h

index 301c3df..e2859e4 100644 (file)
@@ -287,11 +287,6 @@ intel_region_release(struct intel_region **region_handle)
       region->pbo = NULL;
       dri_bo_unreference(region->buffer);
 
-      if (region->classic_map != NULL) {
-        drmUnmap(region->classic_map,
-                       region->pitch * region->cpp * region->height);
-      }
-
       free(region);
    }
    *region_handle = NULL;
index 535fcd7..860ae11 100644 (file)
@@ -52,7 +52,7 @@ struct intel_buffer_object;
  */
 struct intel_region
 {
-   dri_bo *buffer;  /**< buffer manager's buffer */
+   drm_intel_bo *buffer;  /**< buffer manager's buffer */
    GLuint refcount; /**< Reference count for region */
    GLuint cpp;      /**< bytes per pixel */
    GLuint width;    /**< in pixels */
@@ -66,7 +66,6 @@ struct intel_region
 
    uint32_t tiling; /**< Which tiling mode the region is in */
    uint32_t bit_6_swizzle; /**< GEM flag for address swizzling requirement */
-   drmAddress classic_map; /**< drmMap of the region when not in GEM mode */
    struct intel_buffer_object *pbo;     /* zero-copy uploads */
 };