From d17b35e671ae7c6ab6b89973506d12b958d2264d Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 15 Jul 2016 15:44:29 +0200 Subject: 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 Reviewed-by: Rob Clark --- src/gallium/include/pipe/p_defines.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gallium/include') diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index 3ab6c2f62b0..2524e424d7b 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), }; /** -- cgit v1.2.3