r600g/compute: Remove unneeded code from compute_memory_promote_item
authorBruno Jiménez <brunojimen@gmail.com>
Wed, 16 Jul 2014 21:12:47 +0000 (23:12 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 23 Jul 2014 14:29:17 +0000 (10:29 -0400)
commitdbaf0bc38874f8fe4277698435248b7efb336f37
tree9ea59ddd9b3c6e2723ace3b90bc01a7e9bf51ad4
parente7bda844e665c56c22d6ed0d801ee670d4137b1a
r600g/compute: Remove unneeded code from compute_memory_promote_item

Now that we know that the pool is defragmented, we positively know
that allocated + unallocated will be the total size of the
current pool plus all the items that will be promoted. So we only
need to grow the pool once.

This will allow us to just add the new items to the end of the
item_list without the need of looking for a place to the new item.

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