diff options
author | Chia-I Wu <[email protected]> | 2010-11-17 23:35:02 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-11-18 11:56:00 +0800 |
commit | cc5c908d7deab59f3512e1a5762fd058c4ae5940 (patch) | |
tree | ecddbd55dc9504bd7a00ebbd5284d74761442359 | |
parent | 50b4508319cc5277d51a38065850eaa092afc0d4 (diff) |
st/vega: Do not wait NULL fences.
-rw-r--r-- | src/gallium/state_trackers/vega/api_context.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/vega/api_context.c b/src/gallium/state_trackers/vega/api_context.c index 0d04d8e8718..d6bbda5e075 100644 --- a/src/gallium/state_trackers/vega/api_context.c +++ b/src/gallium/state_trackers/vega/api_context.c @@ -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); + } } |