gallium/postprocess: share pipe_context and cso_context with the state tracker
authorMarek Olšák <maraeo@gmail.com>
Thu, 29 Nov 2012 01:55:01 +0000 (02:55 +0100)
committerMarek Olšák <maraeo@gmail.com>
Thu, 29 Nov 2012 19:31:41 +0000 (20:31 +0100)
commit3e163a137be7f9a80ec720903c4bda028de5681f
treef227c113227d2440d700d66bb6fc9dc27d98b9b1
parent135fe907a016ec20b6779f6b3a657563e89c1081
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 <brianp@vmware.com>
src/gallium/auxiliary/postprocess/postprocess.h
src/gallium/auxiliary/postprocess/pp_init.c
src/gallium/auxiliary/postprocess/pp_program.c
src/gallium/auxiliary/postprocess/pp_run.c
src/gallium/include/state_tracker/st_api.h
src/gallium/state_trackers/dri/common/dri_context.c
src/mesa/state_tracker/st_manager.c