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