summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-06-26 19:01:04 +0200
committerMarek Olšák <[email protected]>2015-07-05 15:08:59 +0200
commitfc2726e4afa6dfb691affed576a38d2b0573465b (patch)
tree52160808df9060cefa07bee6ca3f2d61bcc7b798
parentf1be3d8cdde17a9b9ae283e1bab2f46b992d3bf3 (diff)
winsys/radeon: use os_wait_until_zero in radeon_bo_set_tiling
-rw-r--r--src/gallium/winsys/radeon/drm/radeon_drm_bo.c4
1 files changed, 1 insertions, 3 deletions
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;