r600g: add bo wait after map.
authorDave Airlie <airlied@redhat.com>
Fri, 6 Aug 2010 01:44:31 +0000 (11:44 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 6 Aug 2010 01:46:52 +0000 (11:46 +1000)
src/gallium/drivers/r600/r600_texture.c

index 033c71f6ef1289b570b4e3a554108c001f8c1fc8..1bce91130668c62655591b8122c4cd9314115239 100644 (file)
@@ -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 +