diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-06-06 20:05:01 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-06-06 20:05:01 +0000 |
commit | a60180faa7df861ce273cc63846a05f2407c34c4 (patch) | |
tree | abad971eab978590cbcdaec8338eabaf7dae9eb0 | |
parent | bbbfe8399f429b13c0ec5a16c1e2e27dffadee02 (diff) |
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@
-rw-r--r-- | lib/libdrm/radeon/radeon_bo_gem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libdrm/radeon/radeon_bo_gem.c b/lib/libdrm/radeon/radeon_bo_gem.c index fca0aaf01..ebfaebb3a 100644 --- a/lib/libdrm/radeon/radeon_bo_gem.c +++ b/lib/libdrm/radeon/radeon_bo_gem.c @@ -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; } |