summaryrefslogtreecommitdiff
path: root/libdrm
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-09-18 20:43:31 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-09-18 20:43:31 +0200
commitca1b15d645c74e20f638f5a09981bcf02f58caee (patch)
tree8a58a4ad1add4fa9c8aa5cb735b62e432263af83 /libdrm
parentc4fad4c96168a3dfabaa8a7e97758fefd014c8a7 (diff)
Alternative implementation of page table zeroing using zap page_range.
(Disabled for now) Fix bo_wait_idle bug. Remove stray debug message.
Diffstat (limited to 'libdrm')
-rw-r--r--libdrm/xf86drm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c
index 606f098b..a7d4beb4 100644
--- a/libdrm/xf86drm.c
+++ b/libdrm/xf86drm.c
@@ -2984,8 +2984,10 @@ int drmBOWaitIdle(int fd, drmBO *buf, unsigned hint)
req->hint = hint;
arg.next = 0;
- ret = ioctl(fd, DRM_IOCTL_BUFOBJ, &arg);
-
+ do {
+ ret = ioctl(fd, DRM_IOCTL_BUFOBJ, &arg);
+ } while (ret && errno == EAGAIN);
+
if (ret)
return ret;
if (!arg.handled)