Lines Matching full:state
152 struct _mesa_glsl_parse_state *state =
156 state->error = preprocess(state, &source, &state->info_log,
157 state->extensions, ctx->API);
159 if (!state->error) {
160 _mesa_glsl_lexer_ctor(state, source);
161 _mesa_glsl_parse(state);
162 _mesa_glsl_lexer_dtor(state);
166 foreach_list_const(n, &state->translation_unit) {
174 if (!state->error && !state->translation_unit.is_empty())
175 _mesa_ast_to_hir(shader->ir, state);
178 if (!state->error && dump_hir) {
180 _mesa_print_ir(shader->ir, state);
184 if (!state->error && !shader->ir->is_empty()) {
195 if (!state->error && dump_lir) {
196 _mesa_print_ir(shader->ir, state);
199 shader->symbols = state->symbols;
200 shader->CompileStatus = !state->error;
201 shader->Version = state->language_version;
202 memcpy(shader->builtins_to_link, state->builtins_to_link,
203 sizeof(shader->builtins_to_link[0]) * state->num_builtins_to_link);
204 shader->num_builtins_to_link = state->num_builtins_to_link;
209 shader->InfoLog = state->info_log;
214 hieralloc_free(state);