summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-07-09 19:44:13 +0200
committerNicolai Hähnle <[email protected]>2016-07-11 11:04:44 +0200
commit374aa2bb27efbd5e20daee09b6aea2a86b4775cd (patch)
tree18ac49c681e5e1200a8fd89e654323351cc7bb90 /src/gallium/auxiliary/util
parenta0a616720ade8b35171fc8755803ec123d0d98fc (diff)
gallium/u_queue: assert that users must wait on fences before destroying them
Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_queue.c1
1 files changed, 1 insertions, 0 deletions
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);
}