From: Jan Vesely Date: Thu, 19 Jun 2014 18:20:01 +0000 (+0200) Subject: r600g/compute: Handle failures in compute_memory_pool_finalize X-Git-Tag: android-x86-4.4-r3~4720 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=fec2a08eae67806d47a435eca8395eb250ccddb4;p=android-x86%2Fexternal-mesa.git r600g/compute: Handle failures in compute_memory_pool_finalize Reviewed-by: Bruno Jiménez Signed-off-by: Jan Vesely --- diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index c0dd0f34914..5c115dcb282 100644 --- a/src/gallium/drivers/r600/evergreen_compute.c +++ b/src/gallium/drivers/r600/evergreen_compute.c @@ -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++) {