r600g/compute: Quick exit if there's nothing to add to the pool
authorBruno Jiménez <brunojimen@gmail.com>
Wed, 16 Jul 2014 21:12:46 +0000 (23:12 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 23 Jul 2014 14:29:17 +0000 (10:29 -0400)
commite7bda844e665c56c22d6ed0d801ee670d4137b1a
treee85ec0ba83e243bae3e77d38c9521ade5a85e076
parent90d7b09ed2011c658aea1b913f8091c0e89a92bb
r600g/compute: Quick exit if there's nothing to add to the pool

This way we can avoid defragmenting the pool, even if it is needed
to defragment it, and looping again through the list of unallocated
items.

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