llvmpipe: fix up some questionable fence code

Jose should probably review this since he wrote the original code.
This commit is contained in:
Brian Paul 2010-03-24 20:40:31 -06:00
parent a9063cad0f
commit 9a52417582
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}