Fix DRM_RADEON_GEM_WAIT_IDLE ioctl usage; it is defined using DRM_IOW, so
drmCommandWrite() must be used to issue it. Already merged upstream. ok jsg@
This commit is contained in:
parent
6a4af0ad33
commit
93897d45ea
@ -211,8 +211,8 @@ static int bo_wait(struct radeon_bo_int *boi)
|
||||
memset(&args, 0, sizeof(args));
|
||||
args.handle = boi->handle;
|
||||
do {
|
||||
ret = drmCommandWriteRead(boi->bom->fd, DRM_RADEON_GEM_WAIT_IDLE,
|
||||
&args, sizeof(args));
|
||||
ret = drmCommandWrite(boi->bom->fd, DRM_RADEON_GEM_WAIT_IDLE,
|
||||
&args, sizeof(args));
|
||||
} while (ret == -EBUSY);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user