meta/sso: Update meta to save and restore SSO state.
authorGregory Hainaut <gregory.hainaut@gmail.com>
Fri, 3 May 2013 17:44:11 +0000 (19:44 +0200)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 25 Mar 2014 17:25:25 +0000 (10:25 -0700)
commitde4f85f52d0002cfd0105e932141cfdb108f1a61
tree2fc83392269401c79e3fd327eda66ecdffb7976b
parentc03477050a6f51e601f75cb3c061a3e16a5b7171
meta/sso: Update meta to save and restore SSO state.

save and restore _Shader/Pipeline binding point. Rational we don't want any
conflict when the program will be unattached.

V2: formatting improvement

V3 (idr):
* Build fix.  The original patch added calls to _mesa_use_shader_program
  with 4 parameters, but the fourth parameter isn't added to that
  function until a much later patch.  Just drop that parameter for now.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/common/meta.c
src/mesa/drivers/common/meta.h