st/vega: Do not wait NULL fences.
authorChia-I Wu <olv@lunarg.com>
Wed, 17 Nov 2010 15:35:02 +0000 (23:35 +0800)
committerChia-I Wu <olv@lunarg.com>
Thu, 18 Nov 2010 03:56:00 +0000 (11:56 +0800)
src/gallium/state_trackers/vega/api_context.c

index 0d04d8e8718696ed3e23b29a6e70eab829222604..d6bbda5e07520e8343383707e9754735cc6999ca 100644 (file)
@@ -73,7 +73,8 @@ void vegaFinish(void)
    pipe = ctx->pipe;
 
    pipe->flush(pipe, PIPE_FLUSH_RENDER_CACHE | PIPE_FLUSH_FRAME, &fence);
-
-   pipe->screen->fence_finish(pipe->screen, fence, 0);
-   pipe->screen->fence_reference(pipe->screen, &fence, NULL);
+   if (fence) {
+      pipe->screen->fence_finish(pipe->screen, fence, 0);
+      pipe->screen->fence_reference(pipe->screen, &fence, NULL);
+   }
 }