diff options
author | Eric Anholt <[email protected]> | 2011-10-21 15:17:16 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-10-24 13:43:02 -0700 |
commit | 2ecfa88548c6b3135101ae9b5a2ae83b1cef8784 (patch) | |
tree | 16556f267d415b8ca80a9d64bd4298ad66751005 | |
parent | 3cc0a7be23ab603ed40d602595f673a44e079885 (diff) |
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 <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r-- | src/glsl/ir_variable.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |