diff options
author | Marek Olšák <[email protected]> | 2012-11-29 02:55:01 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-11-29 20:31:41 +0100 |
commit | 3e163a137be7f9a80ec720903c4bda028de5681f (patch) | |
tree | f227c113227d2440d700d66bb6fc9dc27d98b9b1 /src/gallium/include | |
parent | 135fe907a016ec20b6779f6b3a657563e89c1081 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/state_tracker/st_api.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 @@ -353,6 +353,17 @@ struct st_context_iface 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. */ void (*destroy)(struct st_context_iface *stctxi); |