mesa: set up gl_vert_result and gl_frag_attrib values for gl_ClipDistance.
authorPaul Berry <stereotype441@gmail.com>
Fri, 19 Aug 2011 20:12:23 +0000 (13:12 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 23 Sep 2011 20:30:03 +0000 (13:30 -0700)
commit3d7c5a4f6f4155e249f6eac76d861eb1bc59eb69
tree5cb677d7228838263c1bce49f5b3ec9856ab2c12
parent1ad54ae0b1713e399c5db43d0eba87861075b4c7
mesa: set up gl_vert_result and gl_frag_attrib values for gl_ClipDistance.

This patch assigns enumerated values for gl_ClipDistance in the
gl_vert_result and gl_frag_attrib enums, so that driver back-ends can
assign gl_ClipDistance to the appropriate hardware registers.  It also
adjusts the functions _mesa_vert_result_to_frag_attrib() and
_mesa_frag_attrib_to_vert_result() (which translate between the two
enums) to correctly translate the new enumerated values.

Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Brian Paul <brianp@vmware.com>
src/glsl/ir_variable.cpp
src/mesa/main/mtypes.h