Get the lock flags right in libdrm.
parent
4ebe7471cb
commit
6420d33b02
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue