gallium: add PIPE_FLUSH_DEFERRED
authorMarek Olšák <marek.olsak@amd.com>
Fri, 15 Jul 2016 13:44:29 +0000 (15:44 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 22 Jul 2016 20:34:49 +0000 (22:34 +0200)
commitd17b35e671ae7c6ab6b89973506d12b958d2264d
tree299af8d8958fe2dd3850d22a99ad2f08fb82e219
parent4cdc482283f87b2325d51f5d6369fa44434902ae
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>
src/gallium/docs/source/context.rst
src/gallium/include/pipe/p_defines.h
src/mesa/state_tracker/st_cb_syncobj.c