diff options
author | Paul Berry <[email protected]> | 2012-12-04 11:11:02 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2012-12-14 10:48:28 -0800 |
commit | 18392443d448e083187d085965375e7de910b18a (patch) | |
tree | 7d863ce5197c886f294224adb960fdb72561f57f /src/glsl/linker.cpp | |
parent | d249159fe6555d5d0fd44d3b661f796a2eb168d6 (diff) |
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 <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/linker.cpp')
-rw-r--r-- | src/glsl/linker.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 29fc5d841b9..802323e32f0 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -2568,8 +2568,9 @@ link_shaders(struct gl_context *ctx, struct gl_shader_program *prog) if (!prog->LinkStatus) goto done; - if (ctx->ShaderCompilerOptions[i].LowerClipDistance) - lower_clip_distance(prog->_LinkedShaders[i]->ir); + if (ctx->ShaderCompilerOptions[i].LowerClipDistance) { + lower_clip_distance(prog->_LinkedShaders[i]); + } unsigned max_unroll = ctx->ShaderCompilerOptions[i].MaxUnrollIterations; |