From: Corbin Simpson Date: Sun, 5 Jul 2009 18:29:13 +0000 (-0700) Subject: radeon-gallium: Wait for BOs before mapping them. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df04e72d25cfcc5aaa574949b8634bc564df0644;p=mesa.git radeon-gallium: Wait for BOs before mapping them. --- diff --git a/src/gallium/winsys/drm/radeon/core/radeon_buffer.c b/src/gallium/winsys/drm/radeon/core/radeon_buffer.c index 0d0fdc5bd86..93748e22567 100644 --- a/src/gallium/winsys/drm/radeon/core/radeon_buffer.c +++ b/src/gallium/winsys/drm/radeon/core/radeon_buffer.c @@ -141,6 +141,8 @@ static void *radeon_buffer_map(struct pipe_winsys *ws, write = 1; } + radeon_bo_wait(radeon_buffer->bo); + if (radeon_bo_map(radeon_buffer->bo, write)) return NULL; return radeon_buffer->bo->ptr;