aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/nine_state.h
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2016-11-12 22:24:04 +0100
committerAxel Davy <[email protected]>2016-12-20 23:44:23 +0100
commit7a7eeefd7dd858682244e43eb5cb0d2c84fb0b07 (patch)
treeeca753808314581d1a433e2f8ebfe694f10535d8 /src/gallium/state_trackers/nine/nine_state.h
parentddb6f1d2d138109b5716baf4d77683d5bf6cffc8 (diff)
st/nine: Add nine_context_get_pipe_acquire/release
See commit for description. Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/nine_state.h')
-rw-r--r--src/gallium/state_trackers/nine/nine_state.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/nine_state.h b/src/gallium/state_trackers/nine/nine_state.h
index 82ebcc9cbcd..912395de81f 100644
--- a/src/gallium/state_trackers/nine/nine_state.h
+++ b/src/gallium/state_trackers/nine/nine_state.h
@@ -600,4 +600,16 @@ nine_context_get_pipe( struct NineDevice9 *device );
struct pipe_context *
nine_context_get_pipe_multithread( struct NineDevice9 *device );
+
+/* Get the pipe_context (should not be called from the worker thread).
+ * All the work in the worker thread is paused before returning.
+ * It is neccessary to release in order to restart the thread.
+ * This is intended for use of the nine_context pipe_context that don't
+ * need the worker thread to finish all queued job. */
+struct pipe_context *
+nine_context_get_pipe_acquire( struct NineDevice9 *device );
+
+void
+nine_context_get_pipe_release( struct NineDevice9 *device );
+
#endif /* _NINE_STATE_H_ */