radeon/winsys: correct RADEON_GEM_WAIT_IDLE use
authorJonathan Gray <jsg@jsg.id.au>
Wed, 5 Jun 2013 05:00:33 +0000 (15:00 +1000)
committerMichel Dänzer <michel@daenzer.net>
Thu, 6 Jun 2013 09:01:18 +0000 (11:01 +0200)
commit5bd808a2c793a81fe79c0a473c25c6e50c313fef
tree350ff29cc0351f0483ef877ccf8c078e6f3a7352
parent962204961def009610e60b23d40a22f064214dc7
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 <jsg@jsg.id.au>
src/gallium/winsys/radeon/drm/radeon_drm_bo.c
src/gallium/winsys/radeon/tools/radeon_ctx.h