[Mesa-dev] [PATCH 2/2] gallium/u_queue: assert that users must wait on fences before destroying them

Nicolai Hähnle nhaehnle at gmail.com
Sat Jul 9 17:44:57 UTC 2016


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

---
 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 2429336..ac3afa1 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.7.4



More information about the mesa-dev mailing list