diff options
author | Keith Packard <keithp@keithp.com> | 2001-06-04 09:45:42 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2001-06-04 09:45:42 +0000 |
commit | 7fcf46356ba70563f036f535e60667727db442ae (patch) | |
tree | a41d16fd99af940ba74e1566c33165aad8312c6c /hw/kdrive/src/kasync.c | |
parent | 54e66d92db917923e33e018e628a7629d6705507 (diff) |
Allow for hardware acceleration under RandR with Layer. Hardware/Software
cursor switching still busted
Diffstat (limited to 'hw/kdrive/src/kasync.c')
-rw-r--r-- | hw/kdrive/src/kasync.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/hw/kdrive/src/kasync.c b/hw/kdrive/src/kasync.c index 3dd86b851..04542ba8d 100644 --- a/hw/kdrive/src/kasync.c +++ b/hw/kdrive/src/kasync.c @@ -21,7 +21,7 @@ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ -/* $XFree86: xc/programs/Xserver/hw/kdrive/kasync.c,v 1.7 2000/09/22 06:25:29 keithp Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/kdrive/kasync.c,v 1.8 2001/03/30 02:15:19 keithp Exp $ */ #include "kdrive.h" @@ -60,7 +60,8 @@ RegionPtr KdCheckCopyArea (DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC, int srcx, int srcy, int w, int h, int dstx, int dsty) { - KdCheckSync (pSrc->pScreen); + if (pSrc->type == DRAWABLE_WINDOW || pDst->type == DRAWABLE_WINDOW) + KdCheckSync (pSrc->pScreen); return fbCopyArea (pSrc, pDst, pGC, srcx, srcy, w, h, dstx, dsty); } @@ -69,7 +70,8 @@ KdCheckCopyPlane (DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC, int srcx, int srcy, int w, int h, int dstx, int dsty, unsigned long bitPlane) { - KdCheckSync (pSrc->pScreen); + if (pSrc->type == DRAWABLE_WINDOW || pDst->type == DRAWABLE_WINDOW) + KdCheckSync (pSrc->pScreen); return fbCopyPlane (pSrc, pDst, pGC, srcx, srcy, w, h, dstx, dsty, bitPlane); } |