static void initialize_vs_variables(exec_list *instructions, struct _mesa_glsl_parse_state *state) { if (state->es_shader) { switch (state->language_version) { case 100: generate_100ES_vs_variables(instructions, state); break; case 300: generate_300ES_vs_variables(instructions, state); break; default: assert(!"Unexpected language version"); break; } } else { switch (state->language_version) { case 110: generate_110_vs_variables(instructions, state, true); break; case 120: generate_120_vs_variables(instructions, state, true); break; case 130: generate_130_vs_variables(instructions, state, true); break; case 140: generate_130_vs_variables(instructions, state, false); break; default: assert(!"Unexpected language version"); break; } } generate_ARB_draw_instanced_variables(instructions, state, false, vertex_shader); }
static void initialize_vs_variables(exec_list *instructions, struct _mesa_glsl_parse_state *state) { switch (state->language_version) { case 100: generate_100ES_vs_variables(instructions, state); break; case 110: generate_110_vs_variables(instructions, state); break; case 120: generate_120_vs_variables(instructions, state); break; case 130: generate_130_vs_variables(instructions, state); break; } if (state->ARB_draw_instanced_enable) generate_ARB_draw_instanced_variables(instructions, state, false, vertex_shader); }