radeon-gallium: Wait for BOs before mapping them.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Sun, 5 Jul 2009 18:29:13 +0000 (11:29 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Sun, 5 Jul 2009 18:29:13 +0000 (11:29 -0700)
src/gallium/winsys/drm/radeon/core/radeon_buffer.c

index 0d0fdc5bd86e17db44d4b6446ac2070e4cb2f007..93748e225673d05d492f08f3b6c98c92a571d163 100644 (file)
@@ -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;