[Mesa-dev] [PATCH] glsl: Add gl_MaxVaryingComponents in GLSL 1.30.
Ian Romanick
idr at freedesktop.org
Sun Oct 23 18:50:45 PDT 2011
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
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 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);
> }
>
>
More information about the mesa-dev
mailing list