gallium/u_queue: assert that users must wait on fences before destroying them
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 9 Jul 2016 17:44:13 +0000 (19:44 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 11 Jul 2016 09:04:44 +0000 (11:04 +0200)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/gallium/auxiliary/util/u_queue.c

index 24293367ec8c87016c70b6ef696db033e3b70e03..ac3afa177734b2db56c38fc28866e17cee9afde3 100644 (file)
@@ -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);
 }