aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon/radeon_lock.h
Commit message (Collapse)AuthorAgeFilesLines
* radeon: refactor framebuffer code like intelDave Airlie2009-03-031-65/+4
| | | | | this is a step towards fbos and should fix pageflipping, but I think the first flip seems broken.
* radeon: renaming and headers cleanupDave Airlie2009-02-121-4/+77
|
* radeon/r200/r300: attempt to move lock to common codeDave Airlie2009-01-141-66/+1
|
* radeon/r200/r300: initial attempt to convert to common context codeDave Airlie2009-01-141-6/+6
|
* r300: Corrected some macro errors from the previous commit.Oliver McFadden2007-05-111-6/+6
|
* r300: Reduced the diff on radeon_lock.[ch].Oliver McFadden2007-05-111-2/+2
|
* r300: Initial work on merging radeon_lock.[ch].Oliver McFadden2007-05-111-3/+7
|
* Bug #2428: #ifdef GLX_DIRECT_RENDERING in DRI drivers is pointless.Adam Jackson2005-01-311-3/+0
|
* OK, one more time. Simplify the state-backup system by just storing the fullEric Anholt2004-09-301-4/+0
| | | | | | | | | state in a ready-to-emit cmdbuf, which avoids the issue Nicolai Haehnle reported where the check() could return differently during backup-and-emit than it should have if it were called at the right time. Move the lit emission before most of the TCL state emission on r200, which fixes neverball issues. Tested with: r100/r200 with neverball, tuxracer, chromium, quake3, ipers
* The previous code would emit a full set of state during the first EmitState onEric Anholt2004-09-251-0/+4
| | | | | | | | | | | | a new cmdbuf, to ensure that state wasn't lost across UNLOCK/LOCK pairs (in the case of context switching). This was rather inefficient. Instead, after flushing a cmdbuf, mark the state as needing to be saved on unlock. Then, at the beginning of flushing a cmdbuf, if we actually have lost the context, go back and emit a new cmdbuf with the full set of state, before continuing with the cmdbuf flush. Provides a 10-15% improvement in ipers performance in my tests, along with other apps. Tested with: ipers, glxgears, quake3
* Revert the move of lost_context setting to UNLOCK_HARDWARE that was done in theEric Anholt2004-08-171-11/+0
| | | | | | | | | | last commit. I've been convinced by keithw that it's sufficient, and put a note in the code about it. Close another race for state in the Clear functions. I made the situation worse in my last commit, but this should fix things. Might be a slight performance hit, which could be regained by splitting the R*_FIREVERTICES calls in r*Clear up so that the EmitState doesn't happen in a separate new cmdbuf.
* Close some races with locking on R100 and R200 which could manifest as renderingEric Anholt2004-08-171-1/+10
| | | | | | | | | | | | | | | | | | | | errors on r100 and rendering errors and hangs on r200 (same for R100 without OLD_PACKETS). If a command buffer filled after some state (EmitState or a VBPNTR write) was emitted, the lock was grabbed, the buffer flushed, a new buffer prepared, and the lock dropped. Another client could come in, set its own state as part of rendering, and when the first client flushed the rendering commands depending on the previous state, it got the 2nd client's state. This is fixed by checking for enough space before beginning a set of state emits and rendering, and flushing the buffer first if so. This guarantees that the buffer won't wrap. Also, move the "lost_context = 1" from the end of cmdbuf flushing to UNLOCK_HARDWARE for clarity (at a minimum) that any time the lock is dropped, state may get overwritten. We don't have enough information at the point of the LOCK_HARDWARE to reset our state to the last UNLOCK_HARDWARE point in the case that we did lose our context, but saving the information to rebuild that state may be a useful optimization (ipers data suggests up to 5%).
* patch to import Jon Smirl's work from BitkeeperBrian Paul2003-08-221-0/+113