From: Eric Anholt Date: Fri, 21 Oct 2011 22:17:16 +0000 (-0700) Subject: glsl: Add gl_MaxVaryingComponents in GLSL 1.30. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ecfa88548c6b3135101ae9b5a2ae83b1cef8784;p=mesa.git glsl: Add gl_MaxVaryingComponents in GLSL 1.30. This is the new name for gl_MaxVaryingFloats now that non-float varyings exist. Fixes piglit glsl-1.30/execution/maximums/gl_MaxVaryingFloats Reviewed-by: Kenneth Graunke Reviewed-by: Ian Romanick --- diff --git a/src/glsl/ir_variable.cpp b/src/glsl/ir_variable.cpp index 6ae3b1f9ecf..b5c575d5092 100644 --- a/src/glsl/ir_variable.cpp +++ b/src/glsl/ir_variable.cpp @@ -615,6 +615,8 @@ generate_130_uniforms(exec_list *instructions, add_builtin_constant(instructions, symtab, "gl_MaxClipDistances", state->Const.MaxClipPlanes); + add_builtin_constant(instructions, symtab, "gl_MaxVaryingComponents", + state->Const.MaxVaryingFloats); }