Module: Mesa
Branch: master
Commit: 74d95adea08b3f94ed7d8f7f9cee693a6cd49a44
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=74d95adea08b3f94ed7d8f7f9cee693a6cd49a44

Author: Marek Olšák <[email protected]>
Date:   Sun Mar  9 01:03:40 2014 +0100

r600g,radeonsi: fix broken buffer download

Reviewed-by: Michel Dänzer <[email protected]>

---

 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. */

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to