summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/radeon
AgeCommit message (Collapse)Author
2009-08-23radeon: Check from kernel if dma buffer is idle.Pauli Nieminen
This makes sure that objects are leaving wait list only when they are processed by gpu. Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-22r600: add support for RS880Alex Deucher
2009-08-22radeon/r300: Code clean up and logic fix.Pauli Nieminen
2009-08-21radeon: protect against buffer overflow in state atom debug code.Pauli Nieminen
2009-08-21radeon: Improve state emit code.Pauli Nieminen
Trying to make understanding code easier with small refactoring and renaming.
2009-08-21radeon: fix incorrect loop limit (warned by -O3)Brian Paul
2009-08-21r300: Predict emit size for next rendering operation.Pauli Nieminen
We do flush for cmd buffer in case there isn't enough space left for whole rendering operation. This protects dma regions from getting released in middle of state emit. Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-21r300: Clean emit code.Pauli Nieminen
This fixes some state atom check functions from returing wrong emit size. There is emit code cleanup so that emit function selection is done in init time instead of runtime. Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-21radeon: Port flush preventation code from r200 to r100.Pauli Nieminen
- emit prediction - fixes to emit_sizes for data - clean up of excesive use of radeonEnsureCmdBufferSpace Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-21r200: Remove unnecessary calls to rcommonEnsureCmdBufSpace.Pauli Nieminen
Calling EnsureCmdBufSpace is not required because rendering pipeline has to quarentee free space. Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-21r200: Fix atom->check call to return emit size for atom.Pauli Nieminen
This patch makes render emit size prediction count the corect maximum emit size for state. Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-21r200: Prevent flush in middle of rendering.Pauli Nieminen
Patch adds prediction functionthat tries to predict emit size to the smallest possible values that is quarenteed to be higher than worst case scenario in rendering pipeline. State emit size prediction code is in place but fix for emit sizes is included in next patch. Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-21radeon/r200: Add -Wall to default build flags like it is in r300/r600Pauli Nieminen
Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-21radeon: Add comment to explain logic for freeing dma buffers.Pauli Nieminen
2009-08-20r600: convert to using common radeon state atomsAlex Deucher
switches more state handling to common code. We need should be more fine grained with the state atoms eventually.
2009-08-20r600: split state emit into block specific functionsAlex Deucher
We probably want to go finer grained eventually, but this is a good start.
2009-08-20radeon: Update regulary cs processing info from kernel.Pauli Nieminen
This fixes problem that dma buffers were leaking in dri1 mode. Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-19radeon: fix typo in last dma patchAlex Deucher
2009-08-19radeon: Add debug output for dma buffer object numbers.Pauli Nieminen
Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-19radeon: Fix dma buffer object pool to scale object sizes.Pauli Nieminen
This fixes problems when application is using large vertex arrays for drawing. Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-18radeon: balance dma buffer mappingPauli Nieminen
In radeonRefillCurrentDmaRegion() make sure we unmap the previous buffer.
2009-08-18r200: make use of DMA buffers for Elts a lot better.Dave Airlie
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.
2009-08-18radeon: Optimize memory handling for dma operations.Pauli Nieminen
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 <suokkos@gmail.com>
2009-08-18radeon/r200: fix build after OQ commitsDave Airlie
2009-08-18r300: OQ reworkDave Airlie
Move to common code base so radeon/r200 can add support for this. Make OQ start a state emitted like all normal state, and make no-tcl flushing work in proper places. Really need a generic post emit space reservation mechanism like max_state so we can reserve some space for the emit this code passes demos/arbocclude, piglit occlusion query and glean occlusion query with TCL and NO-TCL on my rv530.
2009-08-17radeon: remove RADEON_DEBUG_BO stuffAlex Deucher
This stuff was a vestige of the r600 bring up and now mostly serves to periodically break the build.
2009-08-17radeon: turn off bo debuggingDave Airlie
2009-08-15radeon: add flag for drm OQ supportMaciej Cencora
2009-08-15r300: clear not_flushed OQ list after flushMaciej Cencora
2009-08-15radeon space: realign with drm space check codeDave Airlie
2009-08-15Merge branch 'vbo_clean'Maciej Cencora
Conflicts: src/mesa/drivers/dri/r300/r300_draw.c
2009-08-14radeon: handle debug versions of radeon_bo_openMaciej Cencora
2009-08-14radeon: add VBO support (not enabled yet)Maciej Cencora
2009-08-14radeon: export emitvec* functionsMaciej Cencora
2009-08-14radeon: constify some parametersMaciej Cencora
2009-08-12r600: fix warningAlex Deucher
2009-08-12r600: clean up Create/DestroyContextAlex Deucher
2009-08-12r200: Prevent TexGenMatrix from leaking when destroying r200 context.Pauli Nieminen
Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-12radeon: Minor warnings cleanup.Eric Anholt
2009-08-12radeon: Add protection against recursive DRM locking.Pauli Nieminen
Reference counting protects DRM lock call from recursive locking that would cause hang. Code also adds optional debugging output for recursive call that is compiled only if NDEBUG is not defined. This code is not 100% thread safe because mesa doesn't include increment and test atomic operation. There is built-in gcc functions but they are only available from gcc 4.2.
2009-08-11r600: use the drm ioctls for swap and texture uploadAlex Deucher
NOTE: THIS REQUIRES AN UPDATED DRM!
2009-08-10radeon_fbo: switch short to byte for 565Dave Airlie
2009-08-10radeon: fix cut-n-paste in alphabits in fbo codeDave Airlie
2009-08-07radeon: correct fix for tiling with the legacy buildAlex Deucher
2009-08-07radeon: fix the build with older drm headersAlex Deucher
2009-08-07radeon: enable tiling fallbacks in 3D driver.Dave Airlie
Only really got good testing on r500 so far, need to enable in DDX and play some more.
2009-08-07radeon span: add r200 depth/stencil span read/writingDave Airlie
this should only really affect DRI2 since we mostly have a surface in DRI1. I don't think this is perfect yet, but it is a better start than nothing.
2009-08-05radeon: fix miptree comparison breakageRoland Scheidegger
another case of image never matching miptree in case of compressed textures
2009-08-04radeon: more fixes for compressed texturesRoland Scheidegger
- fix not respecting required hardware stride with compressedTexImage - this fixes #22615. - make sure correct stride is used in various places - fix stored miptree never matching with a TexImage call with compressed texture - don't always store data with compressedtexsubimage at offset 0, and actually use the supplied pixel data... (untested) - make sure rows for compressed texture handling are rounded up not down Note that trying to access stored compressed textures in hardware miptrees from core mesa (get_compressed_teximage, swrast fallbacks) can't work correctly, since RowStride isn't really set to anything useful, plus some places (at least get_compressed_teximage) assume this data has native stride and no padding.
2009-08-03radeon: Fix inverted test for disabling flushing of front buffer output.Eric Anholt
(corresponding fix to the intel driver one)