Home | History | Annotate | Download | only in glsl

Lines Matching defs:state

51    struct _mesa_glsl_parse_state *state =
55 state->error = preprocess(state, &source, &state->info_log,
56 state->extensions, ctx->API);
58 if (!state->error) {
59 _mesa_glsl_lexer_ctor(state, source);
60 _mesa_glsl_parse(state);
61 _mesa_glsl_lexer_dtor(state);
65 foreach_list_const(n, &state->translation_unit) {
73 if (!state->error && !state->translation_unit.is_empty())
74 _mesa_ast_to_hir(shader->ir, state);
77 if (!state->error && dump_hir) {
79 _mesa_print_ir(shader->ir, state);
83 if (!state->error && !shader->ir->is_empty()) {
94 if (!state->error && dump_lir) {
95 _mesa_print_ir(shader->ir, state);
98 shader->symbols = state->symbols;
99 shader->CompileStatus = !state->error;
100 shader->Version = state->language_version;
101 memcpy(shader->builtins_to_link, state->builtins_to_link,
102 sizeof(shader->builtins_to_link[0]) * state->num_builtins_to_link);
103 shader->num_builtins_to_link = state->num_builtins_to_link;
108 shader->InfoLog = state->info_log;
113 hieralloc_free(state);