mesa: Fix transform feedback of gl_ClipDistance.
authorPaul Berry <stereotype441@gmail.com>
Tue, 27 Dec 2011 03:39:25 +0000 (19:39 -0800)
committerPaul Berry <stereotype441@gmail.com>
Thu, 5 Jan 2012 21:27:11 +0000 (13:27 -0800)
commit456279bb33e09679de61d560aeafa74bb902fe43
tree01640997407f5cba5cab09a93ee253baa118088e
parent913a5c238b76a84616917dd47c3c7f627c892e58
mesa: Fix transform feedback of gl_ClipDistance.

On drivers that set gl_shader_compiler_options::LowerClipDistance (for
example i965), references to gl_ClipDistance (a float[8] array) will
be converted to references to gl_ClipDistanceMESA (a vec4[2] array).

This patch modifies the linker so that requests for transform feedback
of gl_ClipDistance are similarly converted.

Fixes Piglit test "EXT_transform_feedback/builtin-varyings
gl_ClipDistance".

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/linker.cpp