static void initialize_fs_variables(exec_list *instructions, struct _mesa_glsl_parse_state *state) { switch (state->language_version) { case 100: generate_100ES_fs_variables(instructions, state); break; case 110: generate_110_fs_variables(instructions, state); break; case 120: generate_120_fs_variables(instructions, state); break; case 130: generate_130_fs_variables(instructions, state); break; } if (state->ARB_shader_stencil_export_enable) generate_ARB_shader_stencil_export_variables(instructions, state, state->ARB_shader_stencil_export_warn); if (state->AMD_shader_stencil_export_enable) generate_AMD_shader_stencil_export_variables(instructions, state, state->AMD_shader_stencil_export_warn); }
static void generate_120_fs_variables(exec_list *instructions, struct _mesa_glsl_parse_state *state) { generate_110_fs_variables(instructions, state); for (unsigned i = 0 ; i < Elements(builtin_120_fs_variables) ; i++) { add_builtin_variable(instructions, state->symbols, & builtin_120_fs_variables[i]); } }
static void initialize_fs_variables(exec_list *instructions, struct _mesa_glsl_parse_state *state) { if (state->es_shader) { switch (state->language_version) { case 100: generate_100ES_fs_variables(instructions, state); break; case 300: generate_300ES_fs_variables(instructions, state); break; default: assert(!"Unexpected language version"); break; } } else { switch (state->language_version) { case 110: generate_110_fs_variables(instructions, state, true); break; case 120: generate_120_fs_variables(instructions, state, true); break; case 130: generate_130_fs_variables(instructions, state); break; case 140: generate_140_fs_variables(instructions, state); break; default: assert(!"Unexpected language version"); break; } } if (state->ARB_shader_stencil_export_enable) generate_ARB_shader_stencil_export_variables(instructions, state, state->ARB_shader_stencil_export_warn); if (state->AMD_shader_stencil_export_enable) generate_AMD_shader_stencil_export_variables(instructions, state, state->AMD_shader_stencil_export_warn); }