aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon/radeon_dma.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert "radeon: Fix legacy bo not to reuse dma buffers before refcount is 1."Alex Deucher2009-11-181-7/+2
| | | | | | This reverts commit 284a7af274bc148f112bd0ebb40583923ee26b49. This breaks kde desktop effects. See fdo bug 24131
* radeon: Fix legacy bo not to reuse dma buffers before refcount is 1.Pauli Nieminen2009-09-201-2/+7
| | | | | This should help detecting possible memory leaks with dma buffers and prevent possible visual corruption if data would be overwriten too early.
* radeon: Remove structure allocation from iterator variable.Pauli Nieminen2009-09-111-1/+1
| | | | | dma_bo varaible is only used for iterating so allocating memory for it only causes memory leaks.
* r100: Use shared debug code.Pauli Nieminen2009-08-311-13/+13
| | | | | | Converted r100 to use shared debug code with sed and fast compile check. New code has compability layer so old debugging code doesn't have to be changed all immidiatly.
* radeon: Fix swtcl emit pediction.Pauli Nieminen2009-08-291-5/+8
| | | | | | Problem was to find the correct place to run prediction. Only place that is called for every primitive is ALLOC_VERTS so we have to do prediction there before allocation.
* radeon/r200/r300: Fix swtcl flushing not to invalidate dma region.Pauli Nieminen2009-08-271-7/+0
| | | | | We were check command buffer sizes too alte so allocated dma regions were freed before relocations so space checking failed.
* radeon/r600: Fix remaining warnings when building 64 bit binary.Pauli Nieminen2009-08-251-1/+1
|
* radeon: Fix all compiler warnings.Pauli Nieminen2009-08-251-3/+4
|
* Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa into ↵Pauli Nieminen2009-08-241-1/+8
|\ | | | | | | | | | | | | | | r600_state_predict Conflicts: src/mesa/drivers/dri/r300/r300_cmdbuf.c src/mesa/drivers/dri/radeon/radeon_cmdbuf.h
| * radeon: Check from kernel if dma buffer is idle.Pauli Nieminen2009-08-231-1/+8
| | | | | | | | | | | | This makes sure that objects are leaving wait list only when they are processed by gpu. Signed-off-by: Pauli Nieminen <[email protected]>
* | radeon: Improve state emit code.Pauli Nieminen2009-08-211-1/+1
| | | | | | | | Trying to make understanding code easier with small refactoring and renaming.
* | radeon: Port flush preventation code from r200 to r100.Pauli Nieminen2009-08-211-1/+1
|/ | | | | | | | - emit prediction - fixes to emit_sizes for data - clean up of excesive use of radeonEnsureCmdBufferSpace Signed-off-by: Pauli Nieminen <[email protected]>
* radeon: Add comment to explain logic for freeing dma buffers.Pauli Nieminen2009-08-211-0/+3
|
* radeon: Update regulary cs processing info from kernel.Pauli Nieminen2009-08-201-0/+4
| | | | | | This fixes problem that dma buffers were leaking in dri1 mode. Signed-off-by: Pauli Nieminen <[email protected]>
* radeon: fix typo in last dma patchAlex Deucher2009-08-191-1/+1
|
* radeon: Add debug output for dma buffer object numbers.Pauli Nieminen2009-08-191-3/+18
| | | | Signed-off-by: Pauli Nieminen <[email protected]>
* radeon: Fix dma buffer object pool to scale object sizes.Pauli Nieminen2009-08-191-9/+39
| | | | | | This fixes problems when application is using large vertex arrays for drawing. Signed-off-by: Pauli Nieminen <[email protected]>
* radeon: balance dma buffer mappingPauli Nieminen2009-08-181-0/+4
| | | | | In radeonRefillCurrentDmaRegion() make sure we unmap the previous buffer.
* r200: make use of DMA buffers for Elts a lot better.Dave Airlie2009-08-181-0/+11
| | | | | | | This allows us to return the unused portion of the dma buffer to the allocator instead of wasting nearly 16k a pop. Cherry picked and ported to new code by Pauli.
* radeon: Optimize memory handling for dma operations.Pauli Nieminen2009-08-181-39/+103
| | | | | | | | | | We keep dma buffer objects in list untill they have been unused for many draw operations. Current limit of having 100 flushes is just guess for good performance/memory trade off. Moving WARN_ONCE macro to common context because it is used in multiple drivers. Signed-off-by: Pauli Nieminen <[email protected]>
* radeon: remove RADEON_DEBUG_BO stuffAlex Deucher2009-08-171-6/+0
| | | | | This stuff was a vestige of the r600 bring up and now mostly serves to periodically break the build.
* radeon: export emitvec* functionsMaciej Cencora2009-08-141-2/+2
|
* radeon: constify some parametersMaciej Cencora2009-08-141-5/+5
|
* Merge branch 'master' of git+ssh://[email protected]/git/mesa/mesa ↵Alex Deucher2009-07-151-5/+5
|\ | | | | | | | | | | | | into r6xx-rewrite This builds, but I get an assertion in radeonGetLock() due to the drawable being null.
| * radeon: make swtcl emit size biggerDave Airlie2009-07-111-1/+1
| |
| * radeon/r200/r300: port to new space checking code in libdrmDave Airlie2009-07-061-4/+4
| | | | | | | | | | This moves a big chunk of the space checking code into libdrm so it can be shared by the DDX.
| * Revert "r200: make use of DMA buffers for Elts a lot better."Dave Airlie2009-06-291-13/+6
| | | | | | | | | | | | This reverts commit 0952645fe04a27968565ea4d913500c23b1b11e3. Need to revisit where this is going wrong
| * r200: make use of DMA buffers for Elts a lot better.Dave Airlie2009-06-261-6/+13
| | | | | | | | | | This allows us to return the unused portion of the dma buffer to the allocator instead of wasting nearly 16k a pop.
* | Merge master and fix conflictsAlex Deucher2009-06-121-2/+11
|\|
| * radeon: realloc dma if needed after revalidateJerome Glisse2009-05-241-0/+6
| | | | | | | | | | Revalidate can trigger flushing and dma buffer deallocation, so retry allocation on such case.
| * radeon: maxbuffer size is in bytesJerome Glisse2009-05-211-2/+2
| |
| * r200: fix vbo array renderingJerome Glisse2009-05-201-0/+3
| |
* | Makeup checkin for radeon code change paired with r6/7 code.root2009-05-191-1/+7
|/
* radeon/r200/r300: fix up the whole buffer space checking.Dave Airlie2009-04-021-20/+5
| | | | | | | | | This fixes up the buffer validation scheme, so that we keep a list of buffers to validate so cmdbuf flushes during a pipeline get all the buffers revalidated on the next emit. This also fixes radeonFlush to not flush unless we have something useful to send to the GPU, like a DMA buffer or something not state
* radeon/r200/r300: collapse context destruction down to a common path.Dave Airlie2009-04-021-0/+17
| | | | | Context destruction was nearly the same over all the drivers, so collapse it down.
* radeon: fix cut-n-paste typoDave Airlie2009-03-081-1/+1
|
* rs690: fix r300 swtcl bug in DMA code.Dave Airlie2009-03-071-2/+9
| | | | | | | | When we finish emitting swtcl objects, we request space in the cmdbuf, and flush if no space exists. However in this case we also flush the DMA buffer we just put the vertices we wanted to send in. This checks in advance if we have space in the buffer.
* radeon: renaming and headers cleanupDave Airlie2009-02-121-0/+323