Commit 51bf7603 authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie

renderer: destroy cond/mutex

For completeness (there is no dynamic allocation on Linux).
Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
parent bc358da3
......@@ -3514,6 +3514,9 @@ static void vrend_free_sync_thread(void)
pipe_condvar_signal(vrend_state.fence_cond);
pipe_thread_wait(vrend_state.sync_thread);
vrend_state.sync_thread = 0;
pipe_condvar_destroy(vrend_state.fence_cond);
pipe_mutex_destroy(vrend_state.fence_mutex);
}
static ssize_t
......@@ -3633,6 +3636,8 @@ static void vrend_renderer_use_threaded_sync(void)
close(vrend_state.eventfd);
vrend_state.eventfd = -1;
vrend_clicbs->destroy_gl_context(vrend_state.sync_context);
pipe_condvar_destroy(vrend_state.fence_cond);
pipe_mutex_destroy(vrend_state.fence_mutex);
}
}
#else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment