r600g/compute: Handle failures in compute_memory_pool_finalize
authorJan Vesely <jan.vesely@rutgers.edu>
Thu, 19 Jun 2014 18:20:01 +0000 (20:20 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 24 Jun 2014 16:37:30 +0000 (12:37 -0400)
Reviewed-by: Bruno Jiménez <brunojimen@gmail.com>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
src/gallium/drivers/r600/evergreen_compute.c

index c0dd0f349144f756cecc4b8019b00e2802845e8f..5c115dcb282b8d926e2c53750af7e08c5c2c2ff8 100644 (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++)
        {