summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/pipebuffer
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit 'origin/gallium-0.1' into gallium-0.2Alan Hourihane2008-12-1517-686/+108
|\ | | | | | | | | | | Conflicts: src/gallium/winsys/gdi/SConscript
| * Revert "pipebuffer: Implement proper buffer validation."Keith Whitwell2008-12-1214-367/+108
| | | | | | | | This reverts commit a6d866f72c88d48d2bcfb3e3c882fdb639b5a8ce.
| * Revert "pipebuffer: Ondemand buffer manager."Keith Whitwell2008-12-124-319/+0
| | | | | | | | This reverts commit 17849eafaacfbb2124d86f561a91b707317d3b31.
| * Revert "pipebuffer: Fix buffer overflow."Keith Whitwell2008-12-121-1/+1
| | | | | | | | This reverts commit 55839ae064d64b7fcc180fcddb364bf31ab760dc.
* | Merge commit 'origin/gallium-0.1' into gallium-0.2Alan Hourihane2008-11-2517-111/+686
|\| | | | | | | | | | | | | Conflicts: scons/gallium.py src/gallium/auxiliary/pipebuffer/pb_buffer.h
| * pipebuffer: Fix buffer overflow.José Fonseca2008-11-251-1/+1
| |
| * pipebuffer: Ondemand buffer manager.José Fonseca2008-11-244-0/+319
| | | | | | | | | | A variation of malloc buffers which get transferred to real graphics memory when there is an attempt to validate them.
| * pipebuffer: Implement proper buffer validation.José Fonseca2008-11-2414-108/+367
| |
* | gallium: s/mmDestroy/u_mmDestroy/Brian Paul2008-11-051-1/+1
| |
* | pipebuffer: Ensure refcounts of live buffer objects are never zero.José Fonseca2008-11-032-5/+13
| |
* | gallium: prefix memory manager functions with u_ to differentiate from ↵Brian Paul2008-10-291-5/+5
|/ | | | functions in mesa/main/mm.c
* pipebuffer: New callback to flush all temporary-held buffers.José Fonseca2008-09-189-11/+113
| | | | | Used mostly to aid debugging memory issues or to clean up resources when the drivers are long lived.
* pipebuffer: Add missing break statement to cache lookup logic.José Fonseca2008-09-021-6/+14
| | | | Second loop was never run. Spotted by Keith.
* pipebuffer: Comment the slab code. Remove the freeSlabs list.José Fonseca2008-09-021-27/+77
| | | | | The freeSlabs list is not really needed as we free empty slabs immediately. Time based cached is done separately.
* pipebuffer: Fix/add detail to the under- overflow report messages.José Fonseca2008-08-281-5/+8
|
* pipebuffer: Check buffer over- & underflows when mapping/unmapping too.José Fonseca2008-08-281-16/+52
|
* gallium: thread wrapper clean-upBrian Paul2008-08-265-53/+53
| | | | | In p_thread.h replace _glthread_* functions with new pipe_* functions. Remove other old cruft.
* gallium: include <sched.h> on linux to get sched_yield() protoBrian2008-08-251-0/+1
|
* gallium: include u_memory.h, u_math.hBrian2008-08-241-0/+1
|
* gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.hBrian Paul2008-08-2411-11/+11
| | | | Also, rename p_tile.[ch] to u_tile.[ch]
* pipebuffer: Add an extra assertion to ensure buffers do not jump between lists.José Fonseca2008-08-071-6/+8
|
* pipebuffer: More detailed description of bufer over-/undereflows.José Fonseca2008-07-201-15/+34
|
* pb: buffer over/underflows are errors.José Fonseca2008-07-131-2/+2
|
* gallium: fix logic in pb_check_usage()Brian Paul2008-07-091-1/+1
|
* pipebuffer: Silent warnings.José Fonseca2008-07-031-0/+4
| | | | Although rarely hit in normal apps, they are too noisy with test suites.
* pipebuffer: Debug buffer manager to detect buffer under- and overflows.José Fonseca2008-07-024-1/+309
| | | | It should detect both cpu and gpu buffer overflows.
* pipebuffer: Verify usage flag consistency. Minor cleanups.José Fonseca2008-07-028-17/+43
|
* pb: don't assert(0) on failure to allocate - this is a normal condition in ↵Keith Whitwell2008-06-121-1/+0
| | | | many drivers
* pipebuffer: Fix improper memory free.José Fonseca2008-06-121-1/+1
|
* pipebuffer: Alternative buffer manager.José Fonseca2008-06-104-0/+108
| | | | | For situations where one has a reserve memory pool, or a faster/slower pool.
* pipebuffer: Be more lenient when matching cached buffer sizes.José Fonseca2008-06-101-2/+5
| | | | Reuse cached buffers up to twice as big a requested.
* pipebuffer: Malloc buffer provider.José Fonseca2008-05-272-1/+41
| | | | Simple wrapper around pb_malloc_buffer_create for convenience.
* pipebuffer: Allow slab allocations of buffers of inequal size.José Fonseca2008-05-271-2/+2
|
* pipebuffer: More robust face null pointers.José Fonseca2008-05-221-1/+12
| | | | | | It is really the caller responsibility not to call pipebuffer with null buffers, etc. But don't let the crash happen here, and still asserting early.
* pipebuffer: Don't retry allocating in slab suballocator.José Fonseca2008-05-221-18/+5
| | | | | | In pipebuffer, fencing is done at on a level above sub-allocation, so no matter how many times slab allocator retries no buffer will be freed. The pipebuffer fencing implemention already retries allocating.
* gallium: Don't serialize GPU writes.José Fonseca2008-05-091-50/+50
| | | | | | | Only make sure the GPU is finished with a buffer before mapping. The opposite -- waiting for the CPU to be finished before handing to the CPU -- must be done before fencing.
* pipebuffer: Temporarily reimplement validation as growable array.José Fonseca2008-05-091-65/+48
| | | | Jose
* gallium: Make sure functions have proper prototypes and remove unused variable.Michel Dänzer2008-05-082-2/+2
|
* pipebuffer: Preliminary buffer validation.José Fonseca2008-05-084-0/+263
| | | | | | | Use table to store a list of buffers to validate. Unfortunately cso_hash shrinks/regrows the hash every time, so still has to be addressed. Multi-thread validation is still WIP.
* pipebuffer: Don't include standard headers directly.José Fonseca2008-05-081-2/+2
|
* pb: remove unused variable, squash warningKeith Whitwell2008-04-281-2/+0
|
* pipebuffer: Be extra cautious with the incoming buffers.José Fonseca2008-04-271-3/+17
| | | | | A common mistake is trying to fence user or malloc buffers. So don't let the crash happen inside pipebuffer lib.
* gallium: Windows user mode portability fixes.José Fonseca2008-04-251-4/+7
|
* pipebuffer: New function to flush the buffer cache.José Fonseca2008-04-242-3/+12
|
* pipebuffer: Temporarily allow simultaneous CPU writes.José Fonseca2008-04-221-1/+17
| | | | Also, fast path for re-fencing the same buffer multiple times with the same fence.
* gallium: Fix seg fault (James Vogt).José Fonseca2008-04-151-2/+6
|
* gallium: Several fixes to buffer caching.José Fonseca2008-04-153-25/+68
|
* gallium: Allow to use a single slab.José Fonseca2008-04-152-128/+209
| | | | | We often want to use a pool of equally sized buffers, so this makes the slab suballocator a drop-in replacement.
* gallium: Serialize buffers writes.José Fonseca2008-04-151-5/+76
| | | | | Allow concurrent reads from buffers by the CPU/GPU, but serialize all writes.
* gallium: Buffer cache.José Fonseca2008-04-134-3/+318
|