diff options
author | George Fufutos <fufutos610@hotmail.com> | 2006-05-06 14:37:28 +0300 |
---|---|---|
committer | Luc Verhaegen <libv@skynet.be> | 2006-05-07 20:21:27 +0200 |
commit | 767d1d0aea73c5454c7bddf1ec2a3eb900f8779b (patch) | |
tree | b4b5727794b75cd6364651cdef92920c9cac6349 /src | |
parent | e959aefa73aab7f71f8be135bedd87d3f534f119 (diff) |
[PATCH] Replace ATIMach64Sync() with exaWaitSync() for EXA copy hook.
This makes sure that EXA has been notified that we have synced, avoiding
excessive WaitMarker() calls (as per EXA documentation).
Diffstat (limited to 'src')
-rw-r--r-- | src/atimach64exa.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/atimach64exa.c b/src/atimach64exa.c index 3df6d0d..8ba3e09 100644 --- a/src/atimach64exa.c +++ b/src/atimach64exa.c @@ -299,8 +299,10 @@ Mach64Copy * for the fact that the problem occurs less often (but still occurs) when * copying larger rectangles. */ - if ((pATI->Chip >= ATI_CHIP_264VTB) && !pATI->OptionDevel) - ATIMach64Sync(pScreenInfo); + if ((pATI->Chip >= ATI_CHIP_264VTB) && !pATI->OptionDevel) { + exaMarkSync(pScreenInfo->pScreen); /* Force sync. */ + exaWaitSync(pScreenInfo->pScreen); /* Sync and notify EXA. */ + } } static void Mach64DoneCopy(PixmapPtr pDstPixmap) { } |