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:
kettenis 2013-06-06 20:05:00 +00:00
parent 6a4af0ad33
commit 93897d45ea

View File

@ -211,8 +211,8 @@ static int bo_wait(struct radeon_bo_int *boi)
memset(&args, 0, sizeof(args)); memset(&args, 0, sizeof(args));
args.handle = boi->handle; args.handle = boi->handle;
do { do {
ret = drmCommandWriteRead(boi->bom->fd, DRM_RADEON_GEM_WAIT_IDLE, ret = drmCommandWrite(boi->bom->fd, DRM_RADEON_GEM_WAIT_IDLE,
&args, sizeof(args)); &args, sizeof(args));
} while (ret == -EBUSY); } while (ret == -EBUSY);
return ret; return ret;
} }