Get the lock flags right in libdrm.
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Sun, 21 Oct 2007 10:57:43 +0000 (12:57 +0200)
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Sun, 21 Oct 2007 10:57:43 +0000 (12:57 +0200)
libdrm/xf86drm.c

index ee0043c..a50eff9 100644 (file)
@@ -2828,7 +2828,7 @@ int drmMMLock(int fd, unsigned memType, int lockBM, int ignoreNoEvict)
     memset(&arg, 0, sizeof(arg));
     arg.mem_type = memType;
     arg.lock_flags |= (lockBM) ? DRM_BO_LOCK_UNLOCK_BM : 0;
-    arg.lock_flags |= (ignoreNoEvict) = DRM_BO_LOCK_IGNORE_NO_EVICT;
+    arg.lock_flags |= (ignoreNoEvict) ? DRM_BO_LOCK_IGNORE_NO_EVICT : 0;
 
     do{
         ret = ioctl(fd, DRM_IOCTL_MM_LOCK, &arg);