Home | History | Annotate | Download | only in glsl

Lines Matching refs:symtab

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