glsl/lower_clip_distance: Update symbol table.
authorPaul Berry <stereotype441@gmail.com>
Tue, 4 Dec 2012 19:11:02 +0000 (11:11 -0800)
committerPaul Berry <stereotype441@gmail.com>
Fri, 14 Dec 2012 18:48:28 +0000 (10:48 -0800)
commit18392443d448e083187d085965375e7de910b18a
tree7d863ce5197c886f294224adb960fdb72561f57f
parentd249159fe6555d5d0fd44d3b661f796a2eb168d6
glsl/lower_clip_distance: Update symbol table.

This patch modifies the clip distance lowering pass so that the new
symbol it generates (glClipDistanceMESA) is added to the shader's
symbol table.

This will allow a later patch to modify the linker so that it finds
transform feedback varyings using the symbol table rather than having
to iterate through all the declarations in the shader.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ir_optimization.h
src/glsl/linker.cpp
src/glsl/lower_clip_distance.cpp