i915: Remove left-over drmUnmap()

This commit is contained in:
Kristian Høgsberg
2010-02-11 16:34:11 -05:00
parent 362fa6763c
commit fa43956b5c
2 changed files with 1 additions and 7 deletions

View 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;

View 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 */
};