diff options
author | Eric Anholt <eric@anholt.net> | 2009-04-20 16:07:05 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-04-27 17:05:59 -0700 |
commit | af6892f2b873dd508994d8bbf3d67e719b535e35 (patch) | |
tree | 6f28d50e0811388ea83b15494b1b7206d299ba75 /src/i830_driver.c | |
parent | 393abc15b76804580bfee0760ddbd1fb77e66c02 (diff) |
Replace i830WaitSync with just I830Sync(), as nearly all callers had it wrong.
People were trying to BEGIN_BATCH()/ADVANCE_BATCH() then i830WaitSync on the
results, which wouldn't necessarily wait and lead to various painful bugs,
since only EXA called MarkSync and only for certain rendering operations.
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r-- | src/i830_driver.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c index 626e6584..4fa61c98 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -1935,7 +1935,6 @@ i830_refresh_ring(ScrnInfoPtr pScrn) pI830->ring.space = pI830->ring.head - (pI830->ring.tail + 8); if (pI830->ring.space < 0) pI830->ring.space += pI830->ring.mem->size; - i830MarkSync(pScrn); } enum pipe { @@ -3050,7 +3049,7 @@ i830AdjustFrame(int scrnIndex, int x, int y, int flags) if (crtc && crtc->enabled) { /* Sync the engine before adjust frame */ - i830WaitSync(pScrn); + I830Sync(pScrn); i830PipeSetBase(crtc, crtc->desiredX + x, crtc->desiredY + y); crtc->x = output->initial_x + x; crtc->y = output->initial_y + y; @@ -3454,26 +3453,6 @@ i830_pipe_to_crtc(ScrnInfoPtr pScrn, int pipe) } void -i830WaitSync(ScrnInfoPtr pScrn) -{ - I830Ptr pI830 = I830PTR(pScrn); - - if (pI830->uxa_driver && pI830->need_sync) { - pI830->need_sync = FALSE; - I830Sync(pScrn); - } -} - -void -i830MarkSync(ScrnInfoPtr pScrn) -{ - I830Ptr pI830 = I830PTR(pScrn); - - if (pI830->uxa_driver) - pI830->need_sync = TRUE; -} - -void I830InitpScrn(ScrnInfoPtr pScrn) { pScrn->PreInit = I830PreInit; |