diff options
author | Jesse Barnes <jbarnes@hobbes.virtuousgeek.org> | 2007-11-14 11:30:20 -0800 |
---|---|---|
committer | Jesse Barnes <jbarnes@hobbes.virtuousgeek.org> | 2007-11-14 11:30:20 -0800 |
commit | a2a0821e74a61f53cc7f0c41ce629644ad712114 (patch) | |
tree | bfd55e57dd4725bad8b14eda47d2f95613671816 /src/i830_accel.c | |
parent | ad3bc0158d37e98fcbbe6a8e31413c142a260424 (diff) |
Don't stop ring before restoring hw state
Some of the hw state restoration callbacks may want to use the ring for various
things like stopping video playback, so leave the ring enabled until we get
back from RestoreHWState. Also rename the functions so that their purpose is
clearer and remove a couple of redundant lines.
Diffstat (limited to 'src/i830_accel.c')
-rw-r--r-- | src/i830_accel.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/i830_accel.c b/src/i830_accel.c index 4d9ea790..7501c2b7 100644 --- a/src/i830_accel.c +++ b/src/i830_accel.c @@ -249,25 +249,6 @@ I830SelectBuffer(ScrnInfoPtr pScrn, int buffer) buffer, pI830->bufferOffset); } -void -I830RefreshRing(ScrnInfoPtr pScrn) -{ - I830Ptr pI830 = I830PTR(pScrn); - - /* If we're reaching RefreshRing as a result of grabbing the DRI lock - * before we've set up the ringbuffer, don't bother. - */ - if (pI830->LpRing->mem == NULL) - return; - - pI830->LpRing->head = INREG(LP_RING + RING_HEAD) & I830_HEAD_MASK; - pI830->LpRing->tail = INREG(LP_RING + RING_TAIL); - pI830->LpRing->space = pI830->LpRing->head - (pI830->LpRing->tail + 8); - if (pI830->LpRing->space < 0) - pI830->LpRing->space += pI830->LpRing->mem->size; - i830MarkSync(pScrn); -} - /* The following function sets up the supported acceleration. Call it * from the FbInit() function in the SVGA driver, or before ScreenInit * in a monolithic server. |