projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ca3486
)
r600g,radeonsi: fix broken buffer download
author
Marek Olšák
<marek.olsak@amd.com>
Sun, 9 Mar 2014 00:03:40 +0000
(
01:03
+0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Tue, 11 Mar 2014 18:18:02 +0000
(19:18 +0100)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/r600_buffer_common.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeon/r600_buffer_common.c
b/src/gallium/drivers/radeon/r600_buffer_common.c
index
a7ecfb3
..
d56a644
100644
(file)
--- 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. */