From 3e163a137be7f9a80ec720903c4bda028de5681f Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Thu, 29 Nov 2012 02:55:01 +0100 Subject: gallium/postprocess: share pipe_context and cso_context with the state tracker Using one context instead of two is more efficient and we can skip another context flush. Reviewed-by: Brian Paul --- src/gallium/include/state_tracker/st_api.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/gallium/include/state_tracker') diff --git a/src/gallium/include/state_tracker/st_api.h b/src/gallium/include/state_tracker/st_api.h index 85de1c2af85..91c5529a1f5 100644 --- a/src/gallium/include/state_tracker/st_api.h +++ b/src/gallium/include/state_tracker/st_api.h @@ -352,6 +352,17 @@ struct st_context_iface void *st_context_private; void *st_manager_private; + /** + * The CSO context associated with this context in case we need to draw + * something before swap buffers. + */ + struct cso_context *cso_context; + + /** + * The gallium context. + */ + struct pipe_context *pipe; + /** * Destroy the context. */ -- cgit v1.2.3