aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/mm.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa/main/util: moving gallium u_mm to util, remove main/mmAlejandro Piñeiro2019-12-021-282/+0
| | | | | | | | | | | | | | | | | | | | Right now there are two copies of mm: * mesa/main/mm.[ch] * gallium/auxiliary/util/u_mm.[ch] At some point they splitted, and from the commit message it was not clear why it was not possible to have only one copy at a common place. Taking into account that was several years ago, Im assuming that it was not possible then. This change would allow to have one copy of the same code, and also being able to use that code out of mesa/main or gallium, if needed. This commit moves u_mm and removes mm, as u_mm has slightly more changes. Reviewed-by: Jose Fonseca <[email protected]>
* mesa: remove unneeded #includes of main/compiler.hBrian Paul2018-01-171-1/+0
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* 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.