diff options
author | Keith Whitwell <[email protected]> | 2006-05-22 12:32:35 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2006-05-22 12:32:35 +0000 |
commit | 7e3fa7e837aaf687996abdd8511f6bf32e2c9097 (patch) | |
tree | 39bb8b52dfb632d8133d49b12efc6ab26b29472b /src/mesa/main/mm.h | |
parent | b0b6d1abe5c7e629baebd4bf3d3ee3b17ba6ff08 (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.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/main/mm.h b/src/mesa/main/mm.h index 9213b2ad34e..26d59fff139 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; }; |