[Mesa-dev] [PATCH 11/12] r600g/compute: Handle failures in compute_memory_pool_finalize
Bruno Jiménez
brunojimen at gmail.com
Thu Jun 19 11:20:01 PDT 2014
From: Jan Vesely <jan.vesely at rutgers.edu>
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
CC: Bruno Jimenez <brunojimen at gmail.com>
---
src/gallium/drivers/r600/evergreen_compute.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c
index c0dd0f3..5c115dc 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++)
{
--
2.0.0
More information about the mesa-dev
mailing list