diff options
author | Nicolai Hähnle <[email protected]> | 2016-07-09 19:44:13 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-07-11 11:04:44 +0200 |
commit | 374aa2bb27efbd5e20daee09b6aea2a86b4775cd (patch) | |
tree | 18ac49c681e5e1200a8fd89e654323351cc7bb90 /src/gallium | |
parent | a0a616720ade8b35171fc8755803ec123d0d98fc (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')
-rw-r--r-- | src/gallium/auxiliary/util/u_queue.c | 1 |
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); } |