diff options
author | Marek Olšák <[email protected]> | 2016-07-15 15:44:29 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-07-22 22:34:49 +0200 |
commit | d17b35e671ae7c6ab6b89973506d12b958d2264d (patch) | |
tree | 299af8d8958fe2dd3850d22a99ad2f08fb82e219 /src/mesa/state_tracker | |
parent | 4cdc482283f87b2325d51f5d6369fa44434902ae (diff) |
gallium: add PIPE_FLUSH_DEFERRED
There are 2 uses:
- Asynchronous flushing for multithreaded drivers.
- Return a fence without flushing (mid-command-buffer fence). The driver
can defer flushing until fence_finish is called.
This is required to make Bioshock Infinite faster, which creates
1000 fences (flushes) per frame.
Reviewed-by: Edward O'Callaghan <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_cb_syncobj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_syncobj.c b/src/mesa/state_tracker/st_cb_syncobj.c index ec2687fba53..69f2a289ada 100644 --- a/src/mesa/state_tracker/st_cb_syncobj.c +++ b/src/mesa/state_tracker/st_cb_syncobj.c @@ -73,7 +73,7 @@ static void st_fence_sync(struct gl_context *ctx, struct gl_sync_object *obj, assert(condition == GL_SYNC_GPU_COMMANDS_COMPLETE && flags == 0); assert(so->fence == NULL); - pipe->flush(pipe, &so->fence, 0); + pipe->flush(pipe, &so->fence, PIPE_FLUSH_DEFERRED); } static void st_check_sync(struct gl_context *ctx, struct gl_sync_object *obj) |