aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/mm.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't cast the return value of malloc/reallocMatt Turner2012-09-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch has been generated by the following Coccinelle semantic patch: // Don't cast the return value of malloc/realloc. // // Casting the return value of malloc/realloc only stands to hide // errors. @@ type T; expression E1, E2; @@ - (T) ( _mesa_align_calloc(E1, E2) | _mesa_align_malloc(E1, E2) | calloc(E1, E2) | malloc(E1) | realloc(E1, E2) )
* mesa: s/INLINE/inline/Brian Paul2011-10-011-1/+1
| | | | | | | INLINE is still seen in some files (some generated files, etc) but this is a good start. Acked-by: Kenneth Graunke <[email protected]>
* mesa: Add headers containing sybmols used by mm.c.Vinson Lee2010-07-311-0/+5
|
* Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg2010-02-191-8/+8
|
* Remove incorrect test from mmAllocMem.Michel Dänzer2008-09-221-1/+1
| | | | | 0 is a perfectly valid alignment shift, see e.g. driTexturesGone() which was broken by this.
* mesa: More signed/unsigned float/integer fixes.José Fonseca2008-09-211-10/+10
|
* mesa: Use appropriate unsigned/signed, float/integer types.José Fonseca2008-09-211-2/+2
|
* mesa: make mm.c use unsigned ints for offsets.Dave Airlie2008-06-171-4/+4
| | | | | If you have a GPU using this code and it has the offsets up in this space, this fails.
* Remove unused variable.Keith Whitwell2006-09-221-2/+0
|
* Add some asserts, fix some not-quite-bugs.Keith Whitwell2006-09-071-4/+12
|
* Fix mmFindBlock function.Michal Krol2006-08-021-1/+1
|
* Speedup the venerable mm.[ch] allocator with doubly linked lists and aKeith Whitwell2006-05-221-66/+118
| | | | separate list of free segments.
* Remove the many aliases for 'struct mem_block' in mm.hKeith Whitwell2005-11-281-31/+31
|
* Lots of clean-ups. Replace __inline__ with INLINE macro. Use theBrian Paul2005-10-181-26/+35
| | | | | _mesa_calloc(), _mesa_free() functions. Clean-up formatting, doxygen-style comments.
* Add _mesa_exec_malloc() and _mesa_exec_free() for allocatingKeith Whitwell2005-10-181-0/+211
executable memory. Based on Thomas Hellstrom's patch. TODO: glapi.c also needs this, but cannot access this code.