diff options
author | Marek Olšák <[email protected]> | 2014-03-09 01:03:40 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-03-11 19:18:02 +0100 |
commit | 74d95adea08b3f94ed7d8f7f9cee693a6cd49a44 (patch) | |
tree | e724fcc3bc59499a73aa8cd0257776df8c9dd129 /src/gallium/drivers/radeon | |
parent | 4ca3486b195653f875003d335921fd4e7d7c2c4a (diff) |
r600g,radeonsi: fix broken buffer download
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r-- | src/gallium/drivers/radeon/r600_buffer_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_buffer_common.c b/src/gallium/drivers/radeon/r600_buffer_common.c index a7ecfb3e440..d56a6441eae 100644 --- a/src/gallium/drivers/radeon/r600_buffer_common.c +++ b/src/gallium/drivers/radeon/r600_buffer_common.c @@ -285,7 +285,7 @@ static void *r600_buffer_transfer_map(struct pipe_context *ctx, /* Copy the VRAM buffer to the staging buffer. */ rctx->dma_copy(ctx, &staging->b.b, 0, - box->x % R600_MAP_BUFFER_ALIGNMENT, + offset + box->x % R600_MAP_BUFFER_ALIGNMENT, 0, 0, resource, level, box); /* Just do the synchronization. The buffer is mapped already. */ |