Mesa (master): radeon-gallium: Wait for BOs before mapping them.

Corbin Simpson csimpson at kemper.freedesktop.org
Sun Jul 5 19:02:02 UTC 2009


Module: Mesa
Branch: master
Commit: df04e72d25cfcc5aaa574949b8634bc564df0644
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=df04e72d25cfcc5aaa574949b8634bc564df0644

Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date:   Sun Jul  5 11:29:13 2009 -0700

radeon-gallium: Wait for BOs before mapping them.

---

 src/gallium/winsys/drm/radeon/core/radeon_buffer.c |    2 ++
 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 0d0fdc5..93748e2 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;




More information about the mesa-commit mailing list