diff options
author | Brian Paul <brianp@vmware.com> | 2010-03-24 20:40:31 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-03-24 20:49:54 -0600 |
commit | 9a5241758231b2dd5ae757645158fa33051f5507 (patch) | |
tree | a927c3969460359fde2ac81acc04380ff9aa8d0b /src/gallium/drivers/llvmpipe | |
parent | a9063cad0f0190ff88cd20fbad5aa87bf1a943f6 (diff) |
llvmpipe: fix up some questionable fence code
Jose should probably review this since he wrote the original code.
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_flush.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_flush.c b/src/gallium/drivers/llvmpipe/lp_flush.c index 636d72a9bb..782669a1e7 100644 --- a/src/gallium/drivers/llvmpipe/lp_flush.c +++ b/src/gallium/drivers/llvmpipe/lp_flush.c @@ -111,7 +111,6 @@ llvmpipe_flush_texture(struct pipe_context *pipe, boolean cpu_access, boolean do_not_flush) { - struct pipe_fence_handle *last_fence = NULL; unsigned referenced; referenced = pipe->is_texture_referenced(pipe, texture, face, level); @@ -142,7 +141,7 @@ llvmpipe_flush_texture(struct pipe_context *pipe, pipe->flush(pipe, flush_flags, &fence); - if (last_fence) { + if (fence) { pipe->screen->fence_finish(pipe->screen, fence, 0); pipe->screen->fence_reference(pipe->screen, &fence, NULL); } |