r600g/compute: Add more NULL checks
authorBruno Jiménez <brunojimen@gmail.com>
Mon, 19 May 2014 16:14:53 +0000 (18:14 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 10 Jun 2014 19:29:57 +0000 (15:29 -0400)
commit39bd08efdd12350304aa0c2e412185ef48bcca70
tree0685aa88ee39c19febd0e7e55a2c0e9c5ea0a2f4
parent833b55077378c7c0e612edcb0fb5b3f5d0e07f48
r600g/compute: Add more NULL checks

In this case, NULL checks are added to compute_memory_grow_pool,
so it returns -1 when it fails. This makes necesary
to handle such cases in compute_memory_finalize_pending
when it is needed to grow the pool

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