Lines Matching refs:instructions
387 add_variable(exec_list *instructions, glsl_symbol_table *symtab, in add_variable() argument
416 instructions->push_tail(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
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()
506 generate_100ES_uniforms(exec_list *instructions, in generate_100ES_uniforms() argument
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()
531 generate_110_uniforms(exec_list *instructions, in generate_110_uniforms() argument
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()
586 add_uniform(instructions, symtab, "gl_ClipPlane", in generate_110_uniforms()
589 add_uniform(instructions, symtab, "gl_Point", 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()
600 add_uniform(instructions, symtab, "gl_LightSource", light_source_array_type); 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()
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()
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()
646 generate_100ES_vs_variables(exec_list *instructions, in generate_100ES_vs_variables() argument
650 add_builtin_variable(instructions, state->symbols, in generate_100ES_vs_variables()
654 generate_100ES_uniforms(instructions, state); in generate_100ES_vs_variables()
656 generate_ARB_draw_buffers_variables(instructions, state, false, in generate_100ES_vs_variables()
662 generate_110_vs_variables(exec_list *instructions, in generate_110_vs_variables() argument
667 add_builtin_variable(instructions, state->symbols, in generate_110_vs_variables()
675 add_builtin_variable(instructions, state->symbols, in generate_110_vs_variables()
679 generate_110_uniforms(instructions, state, add_deprecated); in generate_110_vs_variables()
692 add_variable(instructions, state->symbols, in generate_110_vs_variables()
695 generate_ARB_draw_buffers_variables(instructions, state, false, in generate_110_vs_variables()
701 generate_120_vs_variables(exec_list *instructions, in generate_120_vs_variables() argument
708 generate_110_vs_variables(instructions, state, add_deprecated); in generate_120_vs_variables()
713 generate_130_uniforms(exec_list *instructions, in generate_130_uniforms() argument
718 add_builtin_constant(instructions, symtab, "gl_MaxClipDistances", in generate_130_uniforms()
720 add_builtin_constant(instructions, symtab, "gl_MaxVaryingComponents", in generate_130_uniforms()
726 generate_130_vs_variables(exec_list *instructions, in generate_130_vs_variables() argument
730 generate_120_vs_variables(instructions, state, add_deprecated); in generate_130_vs_variables()
733 add_builtin_variable(instructions, state->symbols, in generate_130_vs_variables()
737 generate_130_uniforms(instructions, state); in generate_130_vs_variables()
752 add_variable(instructions, state->symbols, in generate_130_vs_variables()
760 initialize_vs_variables(exec_list *instructions, in initialize_vs_variables() argument
766 generate_100ES_vs_variables(instructions, state); in initialize_vs_variables()
769 generate_110_vs_variables(instructions, state, true); in initialize_vs_variables()
772 generate_120_vs_variables(instructions, state, true); in initialize_vs_variables()
775 generate_130_vs_variables(instructions, state, true); in initialize_vs_variables()
778 generate_130_vs_variables(instructions, state, false); in initialize_vs_variables()
782 generate_ARB_draw_instanced_variables(instructions, state, false, in initialize_vs_variables()
789 generate_100ES_fs_variables(exec_list *instructions, in generate_100ES_fs_variables() argument
793 add_builtin_variable(instructions, state->symbols, in generate_100ES_fs_variables()
798 add_builtin_variable(instructions, state->symbols, in generate_100ES_fs_variables()
802 generate_100ES_uniforms(instructions, state); in generate_100ES_fs_variables()
804 generate_ARB_draw_buffers_variables(instructions, state, false, in generate_100ES_fs_variables()
809 generate_110_fs_variables(exec_list *instructions, in generate_110_fs_variables() argument
814 add_builtin_variable(instructions, state->symbols, in generate_110_fs_variables()
819 add_builtin_variable(instructions, state->symbols, in generate_110_fs_variables()
827 add_builtin_variable(instructions, state->symbols, in generate_110_fs_variables()
832 generate_110_uniforms(instructions, state, add_deprecated); in generate_110_fs_variables()
845 add_variable(instructions, state->symbols, in generate_110_fs_variables()
848 generate_ARB_draw_buffers_variables(instructions, state, false, in generate_110_fs_variables()
854 generate_ARB_draw_buffers_variables(exec_list *instructions, in generate_ARB_draw_buffers_variables() argument
861 add_builtin_constant(instructions, state->symbols, "gl_MaxDrawBuffers", in generate_ARB_draw_buffers_variables()
875 add_variable(instructions, state->symbols, in generate_ARB_draw_buffers_variables()
886 generate_ARB_draw_instanced_variables(exec_list *instructions, in generate_ARB_draw_instanced_variables() argument
898 add_variable(instructions, state->symbols, in generate_ARB_draw_instanced_variables()
913 add_variable(instructions, state->symbols, in generate_ARB_draw_instanced_variables()
924 generate_ARB_shader_stencil_export_variables(exec_list *instructions, in generate_ARB_shader_stencil_export_variables() argument
931 add_variable(instructions, state->symbols, in generate_ARB_shader_stencil_export_variables()
940 generate_AMD_shader_stencil_export_variables(exec_list *instructions, in generate_AMD_shader_stencil_export_variables() argument
947 add_variable(instructions, state->symbols, in generate_AMD_shader_stencil_export_variables()
956 generate_120_fs_variables(exec_list *instructions, in generate_120_fs_variables() argument
960 generate_110_fs_variables(instructions, state, add_deprecated); in generate_120_fs_variables()
965 add_builtin_variable(instructions, state->symbols, in generate_120_fs_variables()
971 generate_fs_clipdistance(exec_list *instructions, in generate_fs_clipdistance() argument
989 add_variable(instructions, state->symbols, in generate_fs_clipdistance()
995 generate_130_fs_variables(exec_list *instructions, in generate_130_fs_variables() argument
998 generate_120_fs_variables(instructions, state, true); in generate_130_fs_variables()
1000 generate_130_uniforms(instructions, state); in generate_130_fs_variables()
1001 generate_fs_clipdistance(instructions, state); in generate_130_fs_variables()
1006 generate_140_fs_variables(exec_list *instructions, in generate_140_fs_variables() argument
1009 generate_120_fs_variables(instructions, state, false); in generate_140_fs_variables()
1011 generate_130_uniforms(instructions, state); in generate_140_fs_variables()
1012 generate_fs_clipdistance(instructions, state); in generate_140_fs_variables()
1016 initialize_fs_variables(exec_list *instructions, in initialize_fs_variables() argument
1022 generate_100ES_fs_variables(instructions, state); in initialize_fs_variables()
1025 generate_110_fs_variables(instructions, state, true); in initialize_fs_variables()
1028 generate_120_fs_variables(instructions, state, true); in initialize_fs_variables()
1031 generate_130_fs_variables(instructions, state); in initialize_fs_variables()
1034 generate_140_fs_variables(instructions, state); in initialize_fs_variables()
1039 generate_ARB_shader_stencil_export_variables(instructions, state, in initialize_fs_variables()
1043 generate_AMD_shader_stencil_export_variables(instructions, state, in initialize_fs_variables()
1048 _mesa_glsl_initialize_variables(exec_list *instructions, in _mesa_glsl_initialize_variables() argument
1053 initialize_vs_variables(instructions, state); in _mesa_glsl_initialize_variables()
1058 initialize_fs_variables(instructions, state); in _mesa_glsl_initialize_variables()