diff --git a/src/i830.h b/src/i830.h index 753eeb7b..9c0c1dec 100644 --- a/src/i830.h +++ b/src/i830.h @@ -181,8 +181,6 @@ typedef struct _i830_memory i830_memory; struct _i830_memory { /** Offset of the allocation in card VM */ unsigned long offset; - /** End of the allocation in card VM */ - unsigned long end; /** * Requested size of the allocation: doesn't count padding. * @@ -204,7 +202,7 @@ struct _i830_memory { i830_memory *prev; /** @} */ - dri_bo *bo; + drm_intel_bo *bo; uint32_t gem_name; }; diff --git a/src/i830_memory.c b/src/i830_memory.c index 289c5f00..e3d78198 100644 --- a/src/i830_memory.c +++ b/src/i830_memory.c @@ -263,11 +263,9 @@ Bool i830_allocator_init(ScrnInfoPtr scrn, unsigned long size) } start->offset = 0; - start->end = start->offset; start->size = 0; start->next = end; end->offset = size; - end->end = end->offset; end->size = 0; end->prev = start; @@ -357,7 +355,6 @@ i830_memory *i830_allocate_memory(ScrnInfoPtr scrn, const char *name, /* Give buffer obviously wrong offset/end until it's pinned. */ mem->offset = -1; - mem->end = -1; mem->size = size; mem->pitch = pitch; @@ -413,8 +410,8 @@ i830_describe_allocations(ScrnInfoPtr scrn, int verbosity, const char *prefix) tile_suffix = " Y tiled"; xf86DrvMsgVerb(scrn->scrnIndex, X_INFO, verbosity, - "%s0x%08lx-0x%08lx: %s (%ld kB%s)%s\n", prefix, - mem->offset, mem->end - 1, mem->name, + "%s0x%08lx: %s (%ld kB%s)%s\n", prefix, + mem->offset, mem->name, mem->size / 1024, phys_suffix, tile_suffix); } xf86DrvMsgVerb(scrn->scrnIndex, X_INFO, verbosity,