summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2012-09-13 17:10:09 +0000
committerTom Stellard <thomas.stellard@amd.com>2012-10-01 15:37:16 +0000
commit5cd1c65dc1eeab9915303085e8f77209b7cd6b16 (patch)
tree35dda4ca3ce761c0122266205fe9d4517f84ca84 /src
parent2508d43c363d36191bf923a7664ddba327b66cf8 (diff)
r600g: Make sure to init the compute memory pool with enough memory
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/compute_memory_pool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/compute_memory_pool.c b/src/gallium/drivers/r600/compute_memory_pool.c
index bd3c14d83ba..5e25a1da35d 100644
--- a/src/gallium/drivers/r600/compute_memory_pool.c
+++ b/src/gallium/drivers/r600/compute_memory_pool.c
@@ -198,7 +198,7 @@ void compute_memory_grow_pool(struct compute_memory_pool* pool,
"use more than 64 kb of memory");
if (!pool->bo) {
- compute_memory_pool_init(pool, 1024 * 16);
+ compute_memory_pool_init(pool, MAX2(new_size_in_dw, 1024 * 16));
} else {
/* XXX: Growing memory pools does not work at the moment. I think
* it is because we are using fragment shaders to copy data to