From 74d95adea08b3f94ed7d8f7f9cee693a6cd49a44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 9 Mar 2014 01:03:40 +0100 Subject: r600g,radeonsi: fix broken buffer download MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Michel Dänzer --- src/gallium/drivers/radeon/r600_buffer_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/radeon/r600_buffer_common.c') 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. */ -- cgit v1.1