Mesa (master): r600g: compute memory pool size is given in dw
Tom Stellard
tstellar at kemper.freedesktop.org
Wed Mar 12 02:02:06 UTC 2014
Module: Mesa
Branch: master
Commit: 2c886eba7820f7e3e965dd16b786b0a412d8ef11
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2c886eba7820f7e3e965dd16b786b0a412d8ef11
Author: Niels Ole Salscheider <niels_ole at salscheider-online.de>
Date: Mon Mar 3 20:28:55 2014 +0100
r600g: compute memory pool size is given in dw
Multiply the dw value by 4 in order to map the complete buffer.
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
Signed-off-by: Niels Ole Salscheider <niels_ole at salscheider-online.de>
---
src/gallium/drivers/r600/compute_memory_pool.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/r600/compute_memory_pool.c b/src/gallium/drivers/r600/compute_memory_pool.c
index 90d5358..2f0d4c8 100644
--- a/src/gallium/drivers/r600/compute_memory_pool.c
+++ b/src/gallium/drivers/r600/compute_memory_pool.c
@@ -449,7 +449,7 @@ void compute_memory_transfer(
if (device_to_host) {
map = pipe->transfer_map(pipe, gart, 0, PIPE_TRANSFER_READ,
- &(struct pipe_box) { .width = aligned_size,
+ &(struct pipe_box) { .width = aligned_size * 4,
.height = 1, .depth = 1 }, &xfer);
assert(xfer);
assert(map);
@@ -457,7 +457,7 @@ void compute_memory_transfer(
pipe->transfer_unmap(pipe, xfer);
} else {
map = pipe->transfer_map(pipe, gart, 0, PIPE_TRANSFER_WRITE,
- &(struct pipe_box) { .width = aligned_size,
+ &(struct pipe_box) { .width = aligned_size * 4,
.height = 1, .depth = 1 }, &xfer);
assert(xfer);
assert(map);
More information about the mesa-commit
mailing list