Ian Romanick <i...@freedesktop.org> writes: > From: Paul Berry <stereotype...@gmail.com> > > This patch also adds assertions so that when we add new GLSL versions, > we'll notice that we need to update the builtin variables. > > Reviewed-by: Ian Romanick <ian.d.roman...@intel.com>
> +static void > +generate_300ES_uniforms(exec_list *instructions, > + struct _mesa_glsl_parse_state *state) > +{ > + generate_common_ES_uniforms(instructions, state); > + > + glsl_symbol_table *const symtab = state->symbols; > + > + add_builtin_constant(instructions, symtab, "gl_MaxVertexOutputVectors", > + state->Const.MaxVaryingFloats / 4); > + add_builtin_constant(instructions, symtab, "gl_MaxFrabmentInputVectors", ^ Fragment
pgpsu5rtpbazY.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev