|
|
@ -3514,6 +3514,9 @@ static void vrend_free_sync_thread(void) |
|
|
|
pipe_condvar_signal(vrend_state.fence_cond); |
|
|
|
pipe_condvar_signal(vrend_state.fence_cond); |
|
|
|
pipe_thread_wait(vrend_state.sync_thread); |
|
|
|
pipe_thread_wait(vrend_state.sync_thread); |
|
|
|
vrend_state.sync_thread = 0; |
|
|
|
vrend_state.sync_thread = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pipe_condvar_destroy(vrend_state.fence_cond); |
|
|
|
|
|
|
|
pipe_mutex_destroy(vrend_state.fence_mutex); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static ssize_t |
|
|
|
static ssize_t |
|
|
@ -3633,6 +3636,8 @@ static void vrend_renderer_use_threaded_sync(void) |
|
|
|
close(vrend_state.eventfd); |
|
|
|
close(vrend_state.eventfd); |
|
|
|
vrend_state.eventfd = -1; |
|
|
|
vrend_state.eventfd = -1; |
|
|
|
vrend_clicbs->destroy_gl_context(vrend_state.sync_context); |
|
|
|
vrend_clicbs->destroy_gl_context(vrend_state.sync_context); |
|
|
|
|
|
|
|
pipe_condvar_destroy(vrend_state.fence_cond); |
|
|
|
|
|
|
|
pipe_mutex_destroy(vrend_state.fence_mutex); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
#else |
|
|
|
#else |
|
|
|