From fc2726e4afa6dfb691affed576a38d2b0573465b Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 26 Jun 2015 19:01:04 +0200 Subject: winsys/radeon: use os_wait_until_zero in radeon_bo_set_tiling --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index 1f0caf60197..314d0ef8df8 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c @@ -778,9 +778,7 @@ static void radeon_bo_set_tiling(struct pb_buffer *_buf, cs->flush_cs(cs->flush_data, 0, NULL); } - while (p_atomic_read(&bo->num_active_ioctls)) { - sched_yield(); - } + os_wait_until_zero(&bo->num_active_ioctls, PIPE_TIMEOUT_INFINITE); if (microtiled == RADEON_LAYOUT_TILED) args.tiling_flags |= RADEON_TILING_MICRO; -- cgit v1.2.3