Mesa (master): r600g: add bo wait after map.
Dave Airlie
airlied at kemper.freedesktop.org
Fri Aug 6 01:46:19 UTC 2010
Module: Mesa
Branch: master
Commit: 121a625c1651ddc181e374ebdf16bc5c46f6eaa9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=121a625c1651ddc181e374ebdf16bc5c46f6eaa9
Author: Dave Airlie <airlied at redhat.com>
Date: Fri Aug 6 11:44:31 2010 +1000
r600g: add bo wait after map.
---
src/gallium/drivers/r600/r600_texture.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index 033c71f..1bce911 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -240,6 +240,8 @@ void* r600_texture_transfer_map(struct pipe_context *ctx,
if (radeon_bo_map(rscreen->rw, resource->bo)) {
return NULL;
}
+ radeon_bo_wait(rscreen->rw, resource->bo);
+
map = resource->bo->data;
return map + rtransfer->offset +
More information about the mesa-commit
mailing list