On 10/23/2011 12:49 AM, Eric Anholt wrote:
> This is the new name for gl_MaxVaryingFloats now that non-float
> varyings exist.  Fixes piglit
> glsl-1.30/execution/maximums/gl_MaxVaryingFloats
> ---
>  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 720bcc6..1ee84d2 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);
>  }

Reviewed-by: Kenneth Graunke <kenn...@whitecape.org>

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to