mesa/sso: Implement _mesa_UseProgramStages
authorGregory Hainaut <gregory.hainaut@gmail.com>
Sat, 29 Jun 2013 00:59:55 +0000 (17:59 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 25 Mar 2014 17:25:25 +0000 (10:25 -0700)
commit78578b759943cb198d34eedc00b3408c1599f6ec
treef08e18dfde08ce81b001600c8f3b0cbaed4367e5
parent4caa9db71ce05dc2cc86177ca42655c2011fbe4a
mesa/sso: Implement _mesa_UseProgramStages

Now arb_separate_shader_object-GetProgramPipelineiv should pass.

V3 (idr):
* Change spec references to core OpenGL versions instead of issues in
  the extension spec.
* Split out from previous uber patch.

v4 (idr): Use _mesa_has_geometry_shaders in _mesa_UseProgramStages to
detect availability of geometry shaders.

v5 (idr): Whitespace cleanup, use _mesa_lookup_shader_program_err
instead of open-coding it again, and update some comments at the end of
_mesa_UseProgramStages.  All suggested by Eric.

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