From df04e72d25cfcc5aaa574949b8634bc564df0644 Mon Sep 17 00:00:00 2001 From: Corbin Simpson Date: Sun, 5 Jul 2009 11:29:13 -0700 Subject: radeon-gallium: Wait for BOs before mapping them. --- src/gallium/winsys/drm/radeon/core/radeon_buffer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/winsys') 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; -- cgit v1.2.3