diff options
author | Marek Olšák <marek.olsak@amd.com> | 2016-07-15 15:44:29 +0200 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2016-07-22 22:34:49 +0200 |
commit | d17b35e671ae7c6ab6b89973506d12b958d2264d (patch) | |
tree | 299af8d8958fe2dd3850d22a99ad2f08fb82e219 /src/gallium/include | |
parent | 4cdc482283f87b2325d51f5d6369fa44434902ae (diff) | |
download | external_mesa3d-d17b35e671ae7c6ab6b89973506d12b958d2264d.zip external_mesa3d-d17b35e671ae7c6ab6b89973506d12b958d2264d.tar.gz external_mesa3d-d17b35e671ae7c6ab6b89973506d12b958d2264d.tar.bz2 |
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 <funfunctor@folklore1984.net>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_defines.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index 3ab6c2f..2524e42 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -348,7 +348,8 @@ enum pipe_transfer_usage */ enum pipe_flush_flags { - PIPE_FLUSH_END_OF_FRAME = (1 << 0) + PIPE_FLUSH_END_OF_FRAME = (1 << 0), + PIPE_FLUSH_DEFERRED = (1 << 1), }; /** |