OSDN Git Service

glsl: Add gl_MaxVaryingComponents in GLSL 1.30.
authorEric Anholt <eric@anholt.net>
Fri, 21 Oct 2011 22:17:16 +0000 (15:17 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 24 Oct 2011 20:43:02 +0000 (13:43 -0700)
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 <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ir_variable.cpp

index 6ae3b1f..b5c575d 100644 (file)
@@ -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);
 }