summaryrefslogtreecommitdiff
path: root/radeon
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@openbsd.org>2013-06-05 13:04:30 +1000
committerMichel Dänzer <michel.daenzer@amd.com>2013-06-06 16:19:38 +0200
commita0178c00c70f4b47e09ed7564fc2ccde611231a0 (patch)
treeb5675ed68b3f58918f17bf661d67f003ec7661fb /radeon
parent1669a67d063e82a58dae4d906015172d471e9a2a (diff)
radeon: correct RADEON_GEM_WAIT_IDLE use
RADEON_GEM_WAIT_IDLE is declared DRM_IOW but libdrm uses it with drmCommandWriteRead instead of drmCommandWrite which leads to the ioctl being unmatched and returning an error on at least OpenBSD. Signed-off-by: Mark Kettenis <kettenis@openbsd.org> Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Diffstat (limited to 'radeon')
-rw-r--r--radeon/radeon_bo_gem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/radeon/radeon_bo_gem.c b/radeon/radeon_bo_gem.c
index fca0aaf0..4ea405ff 100644
--- a/radeon/radeon_bo_gem.c
+++ b/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;
}