Mesa (master): glsl: Add gl_MaxVaryingComponents in GLSL 1.30.

Eric Anholt anholt at kemper.freedesktop.org
Mon Oct 24 20:43:16 UTC 2011


Module: Mesa
Branch: master
Commit: 2ecfa88548c6b3135101ae9b5a2ae83b1cef8784
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2ecfa88548c6b3135101ae9b5a2ae83b1cef8784

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Oct 21 15:17:16 2011 -0700

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 <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 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 6ae3b1f..b5c575d 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);
 }
 
 




More information about the mesa-commit mailing list