Lines Matching refs:symtab

387 add_variable(exec_list *instructions, glsl_symbol_table *symtab,  in add_variable()  argument
391 ir_variable *var = new(symtab) ir_variable(type, name, mode); in add_variable()
418 symtab->add_variable(var); in add_variable()
423 add_uniform(exec_list *instructions, glsl_symbol_table *symtab, in add_uniform() argument
427 add_variable(instructions, symtab, name, type, ir_var_uniform, -1); in add_uniform()
471 add_builtin_variable(exec_list *instructions, glsl_symbol_table *symtab, in add_builtin_variable() argument
477 const glsl_type *const type = symtab->get_type(proto->type); in add_builtin_variable()
482 add_uniform(instructions, symtab, proto->name, type); in add_builtin_variable()
484 add_variable(instructions, symtab, proto->name, type, proto->mode, in add_builtin_variable()
490 add_builtin_constant(exec_list *instructions, glsl_symbol_table *symtab, in add_builtin_constant() argument
493 ir_variable *const var = add_variable(instructions, symtab, in add_builtin_constant()
509 glsl_symbol_table *const symtab = state->symbols; in generate_100ES_uniforms() local
511 add_builtin_constant(instructions, symtab, "gl_MaxVertexAttribs", in generate_100ES_uniforms()
513 add_builtin_constant(instructions, symtab, "gl_MaxVertexUniformVectors", in generate_100ES_uniforms()
515 add_builtin_constant(instructions, symtab, "gl_MaxVaryingVectors", in generate_100ES_uniforms()
517 add_builtin_constant(instructions, symtab, "gl_MaxVertexTextureImageUnits", in generate_100ES_uniforms()
519 add_builtin_constant(instructions, symtab, "gl_MaxCombinedTextureImageUnits", in generate_100ES_uniforms()
521 add_builtin_constant(instructions, symtab, "gl_MaxTextureImageUnits", in generate_100ES_uniforms()
523 add_builtin_constant(instructions, symtab, "gl_MaxFragmentUniformVectors", in generate_100ES_uniforms()
526 add_uniform(instructions, symtab, "gl_DepthRange", in generate_100ES_uniforms()
535 glsl_symbol_table *const symtab = state->symbols; in generate_110_uniforms() local
541 add_builtin_variable(instructions, symtab, in generate_110_uniforms()
547 add_builtin_constant(instructions, symtab, "gl_MaxLights", in generate_110_uniforms()
549 add_builtin_constant(instructions, symtab, "gl_MaxClipPlanes", in generate_110_uniforms()
551 add_builtin_constant(instructions, symtab, "gl_MaxTextureUnits", in generate_110_uniforms()
553 add_builtin_constant(instructions, symtab, "gl_MaxTextureCoords", in generate_110_uniforms()
556 add_builtin_constant(instructions, symtab, "gl_MaxVertexAttribs", in generate_110_uniforms()
558 add_builtin_constant(instructions, symtab, "gl_MaxVertexUniformComponents", in generate_110_uniforms()
560 add_builtin_constant(instructions, symtab, "gl_MaxVaryingFloats", in generate_110_uniforms()
562 add_builtin_constant(instructions, symtab, "gl_MaxVertexTextureImageUnits", in generate_110_uniforms()
564 add_builtin_constant(instructions, symtab, "gl_MaxCombinedTextureImageUnits", in generate_110_uniforms()
566 add_builtin_constant(instructions, symtab, "gl_MaxTextureImageUnits", in generate_110_uniforms()
568 add_builtin_constant(instructions, symtab, "gl_MaxFragmentUniformComponents", in generate_110_uniforms()
576 add_uniform(instructions, symtab, "gl_TextureMatrix", mat4_array_type); in generate_110_uniforms()
577 add_uniform(instructions, symtab, "gl_TextureMatrixInverse", mat4_array_type); in generate_110_uniforms()
578 add_uniform(instructions, symtab, "gl_TextureMatrixTranspose", mat4_array_type); in generate_110_uniforms()
579 add_uniform(instructions, symtab, "gl_TextureMatrixInverseTranspose", mat4_array_type); in generate_110_uniforms()
582 add_uniform(instructions, symtab, "gl_DepthRange", in generate_110_uniforms()
583 symtab->get_type("gl_DepthRangeParameters")); in generate_110_uniforms()
586 add_uniform(instructions, symtab, "gl_ClipPlane", in generate_110_uniforms()
589 add_uniform(instructions, symtab, "gl_Point", in generate_110_uniforms()
590 symtab->get_type("gl_PointParameters")); in generate_110_uniforms()
593 symtab->get_type("gl_MaterialParameters"); in generate_110_uniforms()
594 add_uniform(instructions, symtab, "gl_FrontMaterial", material_parameters_type); in generate_110_uniforms()
595 add_uniform(instructions, symtab, "gl_BackMaterial", material_parameters_type); in generate_110_uniforms()
598 …glsl_type::get_array_instance(symtab->get_type("gl_LightSourceParameters"), state->Const.MaxLights… in generate_110_uniforms()
600 add_uniform(instructions, symtab, "gl_LightSource", light_source_array_type); in generate_110_uniforms()
603 symtab->get_type("gl_LightModelProducts"); in generate_110_uniforms()
604 add_uniform(instructions, symtab, "gl_FrontLightModelProduct", in generate_110_uniforms()
606 add_uniform(instructions, symtab, "gl_BackLightModelProduct", in generate_110_uniforms()
610 glsl_type::get_array_instance(symtab->get_type("gl_LightProducts"), in generate_110_uniforms()
612 add_uniform(instructions, symtab, "gl_FrontLightProduct", light_products_type); in generate_110_uniforms()
613 add_uniform(instructions, symtab, "gl_BackLightProduct", light_products_type); in generate_110_uniforms()
615 add_uniform(instructions, symtab, "gl_TextureEnvColor", in generate_110_uniforms()
622 add_uniform(instructions, symtab, "gl_EyePlaneS", texcoords_vec4); in generate_110_uniforms()
623 add_uniform(instructions, symtab, "gl_EyePlaneT", texcoords_vec4); in generate_110_uniforms()
624 add_uniform(instructions, symtab, "gl_EyePlaneR", texcoords_vec4); in generate_110_uniforms()
625 add_uniform(instructions, symtab, "gl_EyePlaneQ", texcoords_vec4); in generate_110_uniforms()
626 add_uniform(instructions, symtab, "gl_ObjectPlaneS", texcoords_vec4); in generate_110_uniforms()
627 add_uniform(instructions, symtab, "gl_ObjectPlaneT", texcoords_vec4); in generate_110_uniforms()
628 add_uniform(instructions, symtab, "gl_ObjectPlaneR", texcoords_vec4); in generate_110_uniforms()
629 add_uniform(instructions, symtab, "gl_ObjectPlaneQ", texcoords_vec4); in generate_110_uniforms()
631 add_uniform(instructions, symtab, "gl_Fog", in generate_110_uniforms()
632 symtab->get_type("gl_FogParameters")); in generate_110_uniforms()
638 add_uniform(instructions, symtab, "gl_CurrentAttribVertMESA", vert_attribs); in generate_110_uniforms()
641 add_uniform(instructions, symtab, "gl_CurrentAttribFragMESA", frag_attribs); in generate_110_uniforms()
716 glsl_symbol_table *const symtab = state->symbols; in generate_130_uniforms() local
718 add_builtin_constant(instructions, symtab, "gl_MaxClipDistances", in generate_130_uniforms()
720 add_builtin_constant(instructions, symtab, "gl_MaxVaryingComponents", in generate_130_uniforms()