summaryrefslogtreecommitdiff
path: root/src/atimach64cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/atimach64cursor.c')
-rw-r--r--src/atimach64cursor.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/atimach64cursor.c b/src/atimach64cursor.c
index 8cd76db..6b55d42 100644
--- a/src/atimach64cursor.c
+++ b/src/atimach64cursor.c
@@ -132,6 +132,13 @@ ATIMach64LoadCursorImage
CARD32 *pSrc = (pointer)pImage;
volatile CARD32 *pDst = pATI->pCursorImage;
+#ifdef XF86DRI
+
+ /* XAA Sync requires the DRM lock if DRI enabled */
+ ATIDRILock(pScreenInfo);
+
+#endif /* XF86DRI */
+
/* Synchronise video memory accesses */
ATIMach64Sync(pScreenInfo);
@@ -277,6 +284,12 @@ ATIMach64LoadCursorImage
#endif
+#ifdef XF86DRI
+
+ ATIDRIUnlock(pScreenInfo);
+
+#endif /* XF86DRI */
+
}
/*