summaryrefslogtreecommitdiff
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-07-05 11:29:13 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-07-05 11:29:13 -0700
commitdf04e72d25cfcc5aaa574949b8634bc564df0644 (patch)
tree63d944c548073fb8958ae683c5258d634353bb54 /src/gallium/winsys
parent6fff62ee3fdbfe7d8ba15d3ad001f9afd120c307 (diff)
radeon-gallium: Wait for BOs before mapping them.
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/drm/radeon/core/radeon_buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/radeon/core/radeon_buffer.c b/src/gallium/winsys/drm/radeon/core/radeon_buffer.c
index 0d0fdc5bd8..93748e2256 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;