From: Marek Olšák Date: Fri, 26 Jun 2015 17:01:04 +0000 (+0200) Subject: winsys/radeon: use os_wait_until_zero in radeon_bo_set_tiling X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc2726e4afa6dfb691affed576a38d2b0573465b;p=mesa.git winsys/radeon: use os_wait_until_zero in radeon_bo_set_tiling --- 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;