mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 15:40:46 +02:00
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@amd.com> Signed-off-by: Niels Ole Salscheider <niels_ole@salscheider-online.de>
This commit is contained in:
parent
d3eb709ded
commit
2c886eba78
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue