summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/radeon/radeon_common.c
AgeCommit message (Collapse)Author
2009-11-14radeon: use radeon_bo_is_referenced_by_cs for query objectsMaciej Cencora
2009-11-14radeon/r300: no need to flush the cmdbuf when changing scissors state in KMM ↵Maciej Cencora
mode
2009-11-14radeon: remove unnecessary call to radeonEmitStateMaciej Cencora
fixes bo space accounting errors
2009-10-10Merge branch 'mesa_7_6_branch'Brian Paul
2009-10-09radeon: fix scissor regressionAlex Deucher
fixes fdo bug 24248
2009-09-24Merge branch 'mesa_7_6_branch'Pauli Nieminen
2009-09-24radeon: Fix scissors for r600 KMS.Pauli Nieminen
Radeon generic scissors code had problem that some of code was using exclusive and some inclusive bottom right corner. Only r600 driver is using exclusive coordinate so changed generic code to pass inclusive coordinate and r600 driver changes BR coordinate to be exclusive.
2009-09-19mesa: rename functions to be more consistant with rest of mesaBrian Paul
2009-09-09radeon: Add more verbose error message for failed command buffer.Pauli Nieminen
2009-09-01radeon: trim down #includesBrian Paul
2009-09-01radeon: use _mesa_meta_clear()Brian Paul
2009-09-01radeon: fix r100/r200 polygon stipple under kmsDave Airlie
There really need to use state emits under kms, otherwise we end up with some dwords in the command buffer before we've ever emitted any useful state. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-08-31r100: Use shared debug code.Pauli Nieminen
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.
2009-08-28radeon: Fix scissors for dri1.Pauli Nieminen
DRI1 has to set scissors in framebuffer coordinates.
2009-08-28r100/r200: Bring back old PolygonStripple for DRI1.Pauli Nieminen
DRI1 didn't have support for command buffer emit for stripple.
2009-08-28r100/r200: Share PolygonStripple code.Pauli Nieminen
2009-08-27radeon: fix scissor calcs.Dave Airlie
For non-FBOs we need to invert, for FBOs the scissors are non-inverted. no matter what we need to clamp them to the buffer sizes.
2009-08-27radeon: Fix loop en condition so debug output doesn't flood meaningless values.Pauli Nieminen
2009-08-27radeon: Make RADEON_CMDBUF more fine grained.Pauli Nieminen
2009-08-26r200: Add scissor to state atom list.Pauli Nieminen
Scissors are jsut one of states that we have to emit so it should be in state list
2009-08-24radeon: Add debug output to radeonCountStateEmitSize.Pauli Nieminen
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-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-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-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-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-15r300: clear not_flushed OQ list after flushMaciej Cencora
2009-08-11r600: use the drm ioctls for swap and texture uploadAlex Deucher
NOTE: THIS REQUIRES AN UPDATED DRM!
2009-08-03radeon: Fix inverted test for disabling flushing of front buffer output.Eric Anholt
(corresponding fix to the intel driver one)
2009-07-31radeon: Cliprects has to be updated before doing anything with clip rectanglesPauli Nieminen
Reported to fix corruption while dragging an active window by John Bridgman. Signed-off-by: Pauli Nieminen <suokkos@gmail.com> Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-15Merge branch 'master' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa ↵Alex Deucher
into r6xx-rewrite This builds, but I get an assertion in radeonGetLock() due to the drawable being null.
2009-07-15make sure ctx->Driver.Flush is valid before calling itAlex Deucher
2009-07-15Use memcpy directly in the common codeAlex Deucher
This alleviates the need for an additional symbol.
2009-07-14R6xx/r7xx: implement memcpy buffer swapsAlex Deucher
This allows double buffered apps to run, but perfomance will be awful until we implement something faster. You must update to the latest kernel modules.
2009-07-15intel/radeon: add common metaops code.Dave Airlie
Move all the metaops to a dri_metaops file and port radeon/intel to use the new common meta ops code.
2009-07-15radeon: fix unsigned vs signed comparison in stencil code.Dave Airlie
This function takes a GLint not a GLuint, passing in -1 breaks internally.
2009-07-14radeon: port more front fixes from intel.Dave Airlie
Port fixes to read buffer from front.
2009-07-14radeon: Use Stencil.Enabled instead of Stencil._Enabled in DrawBuffers.Dave Airlie
The _Enabled field isn't updated at the point that DrawBuffers is called, and the Driver.Enable() function does the testing for stencil buffer presence anyway.
2009-07-12radeon: update clear code from Intel codebase.Dave Airlie
This updates some of the clear code from Intel gives a 5x clearspd perf for me here. played openarena also, not sure if the viewport changes broke anything,
2009-07-11radeon: Fix scissor rectangle calculation when rendering to FBO.Michel Dänzer
fgl_glxgears -fbo runs, though the gears don't look right yet.
2009-07-08radeon: fix copy and paste typoMaciej Cencora
2009-07-06radeon/r200/r300: port to new space checking code in libdrmDave Airlie
This moves a big chunk of the space checking code into libdrm so it can be shared by the DDX.
2009-06-18radeon: don't re-add BOs to validate listDave Airlie
if its on the list its on the list don't go readding it. multitexturing from the same texture could cause this.
2009-06-17radeon: Flush command buffer on viewport changeJerome Glisse
We flush the command buffer so we don't emit mixed state (with new and previous buffer size) command buffer, this is especialy affecting zbuffer states.
2009-06-12Merge master and fix conflictsAlex Deucher
2009-05-25radeon: on update drawable don't firevertices as it might be call from GetLockJerome Glisse
To avoid locking bug we shouldn't not call firevertices from this path as it's call from radeon get lock.