summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2014-03-09 01:03:40 +0100
committerMarek Olšák <[email protected]>2014-03-11 19:18:02 +0100
commit74d95adea08b3f94ed7d8f7f9cee693a6cd49a44 (patch)
treee724fcc3bc59499a73aa8cd0257776df8c9dd129 /src/gallium/drivers/radeon
parent4ca3486b195653f875003d335921fd4e7d7c2c4a (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.c2
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. */