Lines Matching refs:state
143 struct _mesa_glsl_parse_state *state =
147 state->error = glcpp_preprocess(state, &source, &state->info_log,
148 state->extensions, ctx->API) != 0;
150 if (!state->error) {
151 _mesa_glsl_lexer_ctor(state, source);
152 _mesa_glsl_parse(state);
153 _mesa_glsl_lexer_dtor(state);
157 foreach_list_const(n, &state->translation_unit) {
165 if (!state->error && !state->translation_unit.is_empty())
166 _mesa_ast_to_hir(shader->ir, state);
169 if (!state->error && dump_hir) {
171 _mesa_print_ir(shader->ir, state);
175 if (!state->error && !shader->ir->is_empty()) {
186 if (!state->error && dump_lir) {
187 _mesa_print_ir(shader->ir, state);
190 shader->symbols = state->symbols;
191 shader->CompileStatus = !state->error;
192 shader->Version = state->language_version;
193 memcpy(shader->builtins_to_link, state->builtins_to_link,
194 sizeof(shader->builtins_to_link[0]) * state->num_builtins_to_link);
195 shader->num_builtins_to_link = state->num_builtins_to_link;
200 shader->InfoLog = state->info_log;
205 ralloc_free(state);