r600g/compute: Handle failures in compute_memory_pool_finalize

Reviewed-by: Bruno Jiménez <brunojimen@gmail.com>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
This commit is contained in:
Jan Vesely
2014-06-19 20:20:01 +02:00
committed by Tom Stellard
parent 9575225e12
commit fec2a08eae
+4 -1
View File
@@ -668,7 +668,10 @@ static void evergreen_set_global_binding(
buffers[i]->chunk->status |= ITEM_FOR_PROMOTING;
}
compute_memory_finalize_pending(pool, ctx_);
if (compute_memory_finalize_pending(pool, ctx_) == -1) {
/* XXX: Unset */
return;
}
for (int i = 0; i < n; i++)
{