mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-24 10:10:12 +01:00
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>
This commit is contained in:
parent
1669a67d06
commit
a0178c00c7
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue