From 2ecfa88548c6b3135101ae9b5a2ae83b1cef8784 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 21 Oct 2011 15:17:16 -0700 Subject: [PATCH] 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 --- src/glsl/ir_variable.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.30.2