summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-08-06 11:44:31 +1000
committerDave Airlie <airlied@redhat.com>2010-08-06 11:46:52 +1000
commit121a625c1651ddc181e374ebdf16bc5c46f6eaa9 (patch)
tree52eac3763a04b8174e7eb37887e8f7492b11d9cd /src
parentf717fd25cc44d7dda5a49dc05337c7ee7c8d2d2f (diff)
r600g: add bo wait after map.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/r600_texture.c2
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 033c71f6ef..1bce911306 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 +