[Mesa-dev] [PATCH 2/3] r600g,radeonsi: fix broken buffer download
Marek Olšák
maraeo at gmail.com
Sat Mar 8 17:24:52 PST 2014
From: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/drivers/radeon/r600_buffer_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeon/r600_buffer_common.c b/src/gallium/drivers/radeon/r600_buffer_common.c
index a7ecfb3..d56a644 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. */
--
1.8.3.2
More information about the mesa-dev
mailing list