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/auxiliary/postprocess/postprocess.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gallium/auxiliary/postprocess/postprocess.h') diff --git a/src/gallium/auxiliary/postprocess/postprocess.h b/src/gallium/auxiliary/postprocess/postprocess.h index dfa15f713ac..52ebeb92f73 100644 --- a/src/gallium/auxiliary/postprocess/postprocess.h +++ b/src/gallium/auxiliary/postprocess/postprocess.h @@ -65,13 +65,15 @@ struct pp_queue_t /* Main functions */ -struct pp_queue_t *pp_init(struct pipe_screen *, const unsigned int *); +struct pp_queue_t *pp_init(struct pipe_context *pipe, const unsigned int *, + struct cso_context *); void pp_run(struct pp_queue_t *, struct pipe_resource *, struct pipe_resource *, struct pipe_resource *); void pp_free(struct pp_queue_t *); void pp_free_fbos(struct pp_queue_t *); void pp_debug(const char *, ...); -struct program *pp_init_prog(struct pp_queue_t *, struct pipe_screen *); +struct program *pp_init_prog(struct pp_queue_t *, struct pipe_context *pipe, + struct cso_context *); void pp_init_fbos(struct pp_queue_t *, unsigned int, unsigned int); /* The filters */ -- cgit v1.2.3