Get the lock flags right in libdrm.

main
Thomas Hellstrom 2007-10-21 12:57:43 +02:00
parent 4ebe7471cb
commit 6420d33b02
1 changed files with 1 additions and 1 deletions

View File

@ -2828,7 +2828,7 @@ int drmMMLock(int fd, unsigned memType, int lockBM, int ignoreNoEvict)
memset(&arg, 0, sizeof(arg)); memset(&arg, 0, sizeof(arg));
arg.mem_type = memType; arg.mem_type = memType;
arg.lock_flags |= (lockBM) ? DRM_BO_LOCK_UNLOCK_BM : 0; 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{ do{
ret = ioctl(fd, DRM_IOCTL_MM_LOCK, &arg); ret = ioctl(fd, DRM_IOCTL_MM_LOCK, &arg);