summaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-03-24 01:57:40 +0100
committerMarek Olšák <[email protected]>2017-05-15 13:01:33 +0200
commit8559fa505d5972bbbcca4b90c31da4788162b845 (patch)
treea1afa608e14632369a614f46f00cf81f4009e76e /src/gallium/include/pipe
parent7622181cade48d3b389024b6ce3e4e177073964e (diff)
gallium: add flag PIPE_CONTEXT_PREFER_THREADED
State trackers can set this to tell the driver when u_threaded_context is desirable. Reviewed-by: Nicolai Hähnle <[email protected]> Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r--src/gallium/include/pipe/p_defines.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index 82b9d9c08a4..aafa4f82f5a 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -384,6 +384,14 @@ enum pipe_flush_flags
#define PIPE_CONTEXT_ROBUST_BUFFER_ACCESS (1 << 2)
/**
+ * Prefer threaded pipe_context. It also implies that video codec functions
+ * will not be used. (they will be either no-ops or NULL when threading is
+ * enabled)
+ */
+#define PIPE_CONTEXT_PREFER_THREADED (1 << 3)
+
+
+/**
* Flags for pipe_context::memory_barrier.
*/
#define PIPE_BARRIER_MAPPED_BUFFER (1 << 0)