r600g/compute: Try to use a temporary resource when growing the pool
authorBruno Jiménez <brunojimen@gmail.com>
Mon, 7 Jul 2014 15:50:05 +0000 (17:50 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 25 Jul 2014 21:51:57 +0000 (17:51 -0400)
commit4ca04f31122cacce249e98ed8985964bcb0d91e9
tree21233feb0fe124b1924bc01ccce88088837ced7d
parent5eb11eb1921020afc1fb099ecb275f91d9fc791d
r600g/compute: Try to use a temporary resource when growing the pool

Now, before moving everything to host memory, we try to create a
new resource to use as a pool. I we succeed we just use this resource
and delete the previous one. If we fail we fallback to using the
shadow.

This should make growing the pool faster, and we can also save
64KB of memory that were allocated for the 'shadow', even if they
weren't used.

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/r600/compute_memory_pool.c