mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 00:40:25 +01:00
llvmpipe: Fix fence wait.
Avoids crashing when fence is NULL (LP_NUM_THREADS=0) and leaking when it is not.
This commit is contained in:
parent
c37d8259bb
commit
680071502f
1 changed files with 4 additions and 1 deletions
|
|
@ -106,7 +106,10 @@ llvmpipe_begin_query(struct pipe_context *pipe, struct pipe_query *q)
|
|||
if (pq->binned) {
|
||||
struct pipe_fence_handle *fence;
|
||||
pipe->flush(pipe, PIPE_FLUSH_RENDER_CACHE, &fence);
|
||||
pipe->screen->fence_finish(pipe->screen, fence, 0);
|
||||
if (fence) {
|
||||
pipe->screen->fence_finish(pipe->screen, fence, 0);
|
||||
pipe->screen->fence_reference(pipe->screen, &fence, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
lp_setup_begin_query(llvmpipe->setup, pq);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue