summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c
AgeCommit message (Collapse)Author
2010-02-02gallium: Move p_thread.h and p_atomic.h out of gallium interfaces.José Fonseca
Into os/os_thread.h and util/u_atomic.h respectively.
2009-06-18pipebuffer: Use a type consistently for sizes/offsets.José Fonseca
Avoids warnings on 64bit builds. Use regular unsigned since that's what gallium expects, but use a typedef to facilitate possible changes in the future.
2009-06-08pipebuffer: Silence out of heap space debug printJakob Bornecrantz
2009-03-23gallium: Remove remnants of reference counting internals outside of p_refcnt.h.Michel Dänzer
2009-03-16gallium: Use struct pipe_atomic for pipe refcounts.Thomas Hellstrom
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-03-04gallium: Unify reference counting.Michel Dänzer
The core reference counting code is centralized in p_refcnt.h. This has some consequences related to struct pipe_buffer: * The screen member of struct pipe_buffer must be initialized, or pipe_buffer_reference() will crash trying to destroy a buffer with reference count 0. u_simple_screen takes care of this, but I may have missed some of the drivers not using it. * Except for rare exceptions deep in winsys code, buffers must always be allocated via pipe_buffer_create() or via screen->*buffer_create() rather than via winsys->*buffer_create().
2009-02-23Merge commit 'origin/gallium-0.1'José Fonseca
Conflicts: src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c src/gallium/auxiliary/util/u_tile.c
2009-02-18pipebuffer: Don't retry to alloc memory block on mm.José Fonseca
It will give the same result 2nd time too, as fencing is done at a higher level.
2009-02-18util: Move p_debug.h into util module.José Fonseca
The debug functions depend on several util function for os abstractions, and these depend on debug functions, so a seperate module is not possible.
2009-01-29pipebuffer: Implement proper buffer validation.José Fonseca
2009-01-28pipebuffer: Fix alignment assertion.José Fonseca
2008-12-15Merge commit 'origin/gallium-0.1' into gallium-0.2Alan Hourihane
Conflicts: src/gallium/winsys/gdi/SConscript
2008-12-12Revert "pipebuffer: Implement proper buffer validation."Keith Whitwell
This reverts commit a6d866f72c88d48d2bcfb3e3c882fdb639b5a8ce.
2008-11-25Merge commit 'origin/gallium-0.1' into gallium-0.2Alan Hourihane
Conflicts: scons/gallium.py src/gallium/auxiliary/pipebuffer/pb_buffer.h
2008-11-24pipebuffer: Implement proper buffer validation.José Fonseca
2008-11-05gallium: s/mmDestroy/u_mmDestroy/Brian Paul
2008-10-29gallium: prefix memory manager functions with u_ to differentiate from ↵Brian Paul
functions in mesa/main/mm.c
2008-09-18pipebuffer: New callback to flush all temporary-held buffers.José Fonseca
Used mostly to aid debugging memory issues or to clean up resources when the drivers are long lived.
2008-08-26gallium: thread wrapper clean-upBrian Paul
In p_thread.h replace _glthread_* functions with new pipe_* functions. Remove other old cruft.
2008-08-24gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.hBrian Paul
Also, rename p_tile.[ch] to u_tile.[ch]
2008-07-02pipebuffer: Verify usage flag consistency. Minor cleanups.José Fonseca
2008-06-12pb: don't assert(0) on failure to allocate - this is a normal condition in ↵Keith Whitwell
many drivers
2008-02-23Bring in several forgotten MSVC fixes.José Fonseca
2008-02-19Remove src/mesa and src/mesa/main from gallium source include paths.José Fonseca
2008-02-19Move mm.c code into util module.José Fonseca
Using the u_ prefix to distingish the c source files that support gallium interfaces and those that have really no relation with gallium itself.
2008-02-18Standardize on using the pipe/ include prefix.José Fonseca
2008-02-15Code reorganization: s/aux/auxiliary/.José Fonseca
"aux" is a reserved name on Windows (X_X)