summaryrefslogtreecommitdiff
path: root/src/mesa/main/mm.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2006-05-22 12:32:35 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2006-05-22 12:32:35 +0000
commit7e3fa7e837aaf687996abdd8511f6bf32e2c9097 (patch)
tree39bb8b52dfb632d8133d49b12efc6ab26b29472b /src/mesa/main/mm.h
parentb0b6d1abe5c7e629baebd4bf3d3ee3b17ba6ff08 (diff)
Speedup the venerable mm.[ch] allocator with doubly linked lists and a
separate list of free segments.
Diffstat (limited to 'src/mesa/main/mm.h')
-rw-r--r--src/mesa/main/mm.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/main/mm.h b/src/mesa/main/mm.h
index 9213b2ad34..26d59fff13 100644
--- a/src/mesa/main/mm.h
+++ b/src/mesa/main/mm.h
@@ -36,12 +36,12 @@
struct mem_block {
- struct mem_block *next;
- struct mem_block *heap;
- int ofs,size;
- int align;
- unsigned int free:1;
- unsigned int reserved:1;
+ struct mem_block *next, *prev;
+ struct mem_block *next_free, *prev_free;
+ struct mem_block *heap;
+ int ofs,size;
+ unsigned int free:1;
+ unsigned int reserved:1;
};