Lines Matching refs:state
209 struct _mesa_glsl_parse_state *state
214 _mesa_glsl_initialize_types(state);
215 _mesa_glsl_read_ir(state, shader->ir, input.c_str(), true);
219 state->error = glcpp_preprocess(state, &source, &state->info_log,
220 state->extensions, ctx->API) != 0;
222 if (!state->error) {
223 _mesa_glsl_lexer_ctor(state, source);
224 _mesa_glsl_parse(state);
225 _mesa_glsl_lexer_dtor(state);
229 if (!state->error && !state->translation_unit.is_empty())
230 _mesa_ast_to_hir(shader->ir, state);
234 if (!state->error && !quiet) {
236 _mesa_print_ir(shader->ir, state);
241 if (!state->error) {
250 if (!state->error) {
254 _mesa_print_ir(shader->ir, state);
260 if (state->error) {
262 printf("%s\n", state->info_log);
266 ralloc_free(state);
269 return state->error;