From: Nicolai Hähnle Date: Sat, 9 Jul 2016 17:44:13 +0000 (+0200) Subject: gallium/u_queue: assert that users must wait on fences before destroying them X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=374aa2bb27efbd5e20daee09b6aea2a86b4775cd;p=mesa.git gallium/u_queue: assert that users must wait on fences before destroying them Reviewed-by: Marek Olšák Reviewed-by: Edward O'Callaghan --- diff --git a/src/gallium/auxiliary/util/u_queue.c b/src/gallium/auxiliary/util/u_queue.c index 24293367ec8..ac3afa17773 100644 --- a/src/gallium/auxiliary/util/u_queue.c +++ b/src/gallium/auxiliary/util/u_queue.c @@ -204,6 +204,7 @@ util_queue_fence_init(struct util_queue_fence *fence) void util_queue_fence_destroy(struct util_queue_fence *fence) { + assert(fence->signalled); pipe_condvar_destroy(fence->cond); pipe_mutex_destroy(fence->mutex); }