summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorJan Vesely <[email protected]>2014-06-19 20:20:01 +0200
committerTom Stellard <[email protected]>2014-06-24 12:37:30 -0400
commitfec2a08eae67806d47a435eca8395eb250ccddb4 (patch)
treeee0ad9ec61210698fa06c2ed22dcdff171b6315d /src/gallium
parent9575225e12c66bf409ce2269400f9ad148ffe0a2 (diff)
r600g/compute: Handle failures in compute_memory_pool_finalize
Reviewed-by: Bruno JimĂ©nez <[email protected]> Signed-off-by: Jan Vesely <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r600/evergreen_compute.c5
1 files changed, 4 insertions, 1 deletions
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++)
{