r600g: Make sure to init the compute memory pool with enough memory
authorTom Stellard <thomas.stellard@amd.com>
Thu, 13 Sep 2012 17:10:09 +0000 (17:10 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 1 Oct 2012 15:37:16 +0000 (15:37 +0000)
src/gallium/drivers/r600/compute_memory_pool.c

index bd3c14d83ba04c43c17c9e244ae16e526f6d2cd1..5e25a1da35d329bc8c1c1e2f04d1c0d423af026e 100644 (file)
@@ -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