aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon/radeon_dma.c
Commit message (Collapse)AuthorAgeFilesLines
* radeon/r200: make radeon_context subclass of gl_contextBrian Paul2012-10-051-4/+4
| | | | | radeon_context now contains a gl_context, rather than a pointer to one. This will allow some minor core Mesa clean-up.
* radeon: fix free/FREE mistakeBrian Paul2012-09-011-1/+1
|
* mesa: s/FREE/free/Brian Paul2012-09-011-8/+8
| | | | | | | v2: replace instances in dri/common/ dirs Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* radeon: share common fog code between radeon and r200Alex Deucher2012-01-171-0/+36
| | | | Signed-off-by: Alex Deucher <[email protected]>
* dri: Remove dri2.enabled flagKristian Høgsberg2011-11-021-3/+1
| | | | DRI2 is always enabled now.
* radeon: Drop dri2 checks now that it's always true.Eric Anholt2011-10-281-5/+0
| | | | This makes LOCK_HARDWARE empty, so it goes away.
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-3/+3
|
* radeon: fix warningMarek Olšák2010-04-211-1/+1
|
* radeon: Fix buffer object unmap to be called only once for dma buffers.Pauli Nieminen2010-03-161-6/+1
| | | | | | If flush happens inside radeonRefillCurrentMaRegion the last dma buffer would be unmapped twice. Unmapping buffer when moving buffer to wait list fixes the mapping error.
* radeon: Reduce number of radeon_bo_map calls that require kernel entry.Pauli Nieminen2010-03-011-3/+13
| | | | | | | | | | DMA buffers are often remapped many times for singel cs. To reduce number of mapping calls ending to kernel dma buffers are mapped when allocated and unmapped when full or in cs flush. This makes indifual mapping calls in other parts of code simple increment/decrement reference count which is faster than entering kernel. This improves Anholt's openarena benchmark from 36 fps to 44 fps.
* radeon: drop assert accessing cref which is meant to be hiddenDave Airlie2009-12-171-1/+0
|
* Merge commit 'origin/mesa_7_7_branch'Keith Whitwell2009-12-011-7/+2
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/drivers/svga/svga_screen_texture.c src/gallium/state_trackers/xorg/xorg_composite.c src/gallium/state_trackers/xorg/xorg_exa.c src/gallium/state_trackers/xorg/xorg_renderer.c src/gallium/state_trackers/xorg/xorg_xv.c src/mesa/main/texgetimage.c src/mesa/main/version.h
| * 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
* | r300: fix swtcl bo leak problem.Dave Airlie2009-11-241-3/+5
| | | | | | | | | | | | | | We can get a lot of swtcl bo allocations - need to probably abstract this a bit further. Signed-off-by: Dave Airlie <[email protected]>
* | radeon/r200/r300/r600: make bo mapping be explicitDave Airlie2009-11-241-12/+12
|/ | | | | | | | | | This moves the bo mapping outside the DMA layer and makes it explicit, this should in theory make it simpler to split the clean up the dma/cmdbuf linkage that I created before that is broken. Tested on: r600, rv380 (tcl/no-tcl), rv200 (tcl/no-tcl) Signed-off-by: Dave Airlie <[email protected]>
* 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
|