From 374aa2bb27efbd5e20daee09b6aea2a86b4775cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Sat, 9 Jul 2016 19:44:13 +0200 Subject: [PATCH] gallium/u_queue: assert that users must wait on fences before destroying them MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Reviewed-by: Edward O'Callaghan --- src/gallium/auxiliary/util/u_queue.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.30.2