ir_to_mesa: Generate gl_program_parameter list by walking the GLSL IR.
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 10 Sep 2011 01:27:36 +0000 (18:27 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 19 Oct 2011 00:26:38 +0000 (17:26 -0700)
commitb2572928a50ce42abc2733202d08f5a00733d707
tree8d0fc7b60ae88515af82f5ad8ecf51a183c3d019
parentbbbb8345ab9df2d634dc2a34d257ee2cbf930292
ir_to_mesa: Generate gl_program_parameter list by walking the GLSL IR.

Generate the program parameters list by walking the IR instead of by
walking the list of linked uniforms.  This simplifies the code quite a
bit, and is probably a bit more correct.  The list of linked uniforms
should really only be used by the GL API to interact with the
application.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: Bryan Cain <bryancain3@gmail.com>
Cc: Eric Anholt <eric@anholt.net>
src/mesa/program/ir_to_mesa.cpp
src/mesa/program/ir_to_mesa.h