diff options
author | Nicolai Hähnle <[email protected]> | 2017-11-10 11:28:28 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-11-20 18:15:56 +0100 |
commit | aaebf49ebaf34e92e99608507f42f5f42335a118 (patch) | |
tree | 6a9b287b3f8fd9bb808acd9c322ed23a4b1d5c90 /src/gallium/auxiliary | |
parent | 81aabb20f38449973dbd9c003628986f947a9efb (diff) |
gallium/u_threaded: properly initialize fence unflushed tokens
This got lost in a rebase but never hurt anything because we happened
to always sync in fence_finish anyway...
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/util/u_threaded_context.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c index d0a8ffbd11a..84fbb224533 100644 --- a/src/gallium/auxiliary/util/u_threaded_context.c +++ b/src/gallium/auxiliary/util/u_threaded_context.c @@ -1931,7 +1931,6 @@ tc_flush(struct pipe_context *_pipe, struct pipe_fence_handle **fence, if (async && tc->create_fence) { if (fence) { - struct tc_unflushed_batch_token *token = NULL; struct tc_batch *next = &tc->batch_slots[tc->next]; if (!next->token) { @@ -1943,7 +1942,7 @@ tc_flush(struct pipe_context *_pipe, struct pipe_fence_handle **fence, next->token->tc = tc; } - screen->fence_reference(screen, fence, tc->create_fence(pipe, token)); + screen->fence_reference(screen, fence, tc->create_fence(pipe, next->token)); if (!*fence) goto out_of_memory; } |