summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_memory.h
Commit message (Collapse)AuthorAgeFilesLines
* util: Silence pointer to integer size mismatch errors.José Fonseca2010-03-311-1/+1
|
* util: Reimplement all utility functions in terms of the new OS abstraction.José Fonseca2010-02-031-150/+8
|
* util: silence warnings for third REALLOC argumentKeith Whitwell2009-08-131-1/+7
| | | | | | Our fallback realloc path requires an old_size argument, but the posix varient doesn't need this. Add some code to avoid gcc unused variable warnings for this extra argument.
* gallium: added null ptr check in align_free()Brian Paul2009-03-051-3/+5
|
* util: Move p_debug.h into util module.José Fonseca2009-02-181-2/+2
| | | | | The debug functions depend on several util function for os abstractions, and these depend on debug functions, so a seperate module is not possible.
* util: (Re)enable memory debugging for all windows platforms.José Fonseca2009-02-181-1/+1
|
* gallium: Disable memory debugging for Windows OGL.José Fonseca2009-01-141-1/+1
| | | | | | | | | | Unfortunately both Mesa and Gallium use the same defines for memory allocation (MALLOC, FREE, etc), and worse, some times memory is allocated with one set and freed with the other set, causing the homegrown memory debugger to trip on itself. In the future mesa and gallium should use different names, but for now, memory debugging on Windows will have to be carried with different tools..
* Merge commit 'origin/gallium-0.1' into gallium-0.2José Fonseca2008-12-221-1/+1
|\ | | | | | | | | | | Conflicts: src/gallium/auxiliary/util/Makefile
| * gallium: Fix typo in define name.José Fonseca2008-12-201-1/+1
| |
| * gallium: Enable memory debugging on all windows platforms.José Fonseca2008-12-181-1/+1
| |
* | CELL: use variant-length fragment ops programsRobert Ellison2008-11-211-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a set of changes that optimizes the memory use of fragment operation programs (by using and transmitting only as much memory as is needed for the fragment ops programs, instead of maximal sizes), as well as eliminate the dependency on hard-coded maximal program sizes. State that is not dependent on fragment facing (i.e. that isn't using two-sided stenciling) will only save and transmit a single fragment operation program, instead of two identical programs. - Added the ability to emit a LNOP (No Operation (Load)) instruction. This is used to pad the generated fragment operations programs to a multiple of 8 bytes, which is necessary for proper operation of the dual instruction pipeline, and also required for proper SPU-side decoding. - Added the ability to allocate and manage a variant-length struct cell_command_fragment_ops. This structure now puts the generated function field at the end, where it can be as large as necessary. - On the PPU side, we now combine the generated front-facing and back-facing code into a single variant-length buffer (and only use one if the two sets of code are identical) for transmission to the SPU. - On the SPU side, we pull the correct sizes out of the buffer, allocate a new code buffer if the one we have isn't large enough, and save the code to that buffer. The buffer is deallocated when the SPU exits. - Commented out the emit_fetch() static function, which was not being used.
* util: Fix compiler errors in the release build of C++ sources.José Fonseca2008-08-311-2/+11
|
* gallium: include p_debug.h for non-HAVE_POSIX_MEMALIGNBrian2008-08-251-0/+1
|
* gallium: Add missing includes.Michal Krol2008-08-251-1/+1
|
* gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.hBrian Paul2008-08-241-0/+222
Also, rename p_tile.[ch] to u_tile.[ch]