diff options
author | Jonathan Gray <[email protected]> | 2013-06-05 15:00:33 +1000 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2013-06-06 11:01:18 +0200 |
commit | 5bd808a2c793a81fe79c0a473c25c6e50c313fef (patch) | |
tree | 350ff29cc0351f0483ef877ccf8c078e6f3a7352 /src/gallium/winsys/radeon/tools | |
parent | 962204961def009610e60b23d40a22f064214dc7 (diff) |
radeon/winsys: correct RADEON_GEM_WAIT_IDLE use
RADEON_GEM_WAIT_IDLE is declared DRM_IOW but mesa
uses it with drmCommandWriteRead instead of drmCommandWrite
which leads to the ioctl being unmatched and returning an
error on at least OpenBSD.
Problem originally noticed in libdrm by Mark Kettenis.
Dave Airlie pointed out that mesa has the same issue.
Signed-off-by: Jonathan Gray <[email protected]>
Diffstat (limited to 'src/gallium/winsys/radeon/tools')
-rw-r--r-- | src/gallium/winsys/radeon/tools/radeon_ctx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/radeon/tools/radeon_ctx.h b/src/gallium/winsys/radeon/tools/radeon_ctx.h index c2967ff0ff8..1eecfd5b6ff 100644 --- a/src/gallium/winsys/radeon/tools/radeon_ctx.h +++ b/src/gallium/winsys/radeon/tools/radeon_ctx.h @@ -98,7 +98,7 @@ static void bo_wait(struct ctx *ctx, struct bo *bo) memset(&args, 0, sizeof(args)); args.handle = bo->handle; do { - r = drmCommandWriteRead(ctx->fd, DRM_RADEON_GEM_WAIT_IDLE, &args, sizeof(args)); + r = drmCommandWrite(ctx->fd, DRM_RADEON_GEM_WAIT_IDLE, &args, sizeof(args)); } while (r == -EBUSY); } |