Lines Matching refs:linked
2502 gl_linked_shader *linked = rzalloc(NULL, struct gl_linked_shader); in link_intrastage_shaders() local
2503 linked->Stage = shader_list[0]->Stage; in link_intrastage_shaders()
2510 _mesa_delete_linked_shader(ctx, linked); in link_intrastage_shaders()
2517 linked->Program = gl_prog; in link_intrastage_shaders()
2519 linked->ir = new(linked) exec_list; in link_intrastage_shaders()
2520 clone_ir_list(mem_ctx, linked->ir, main->ir); in link_intrastage_shaders()
2522 link_fs_inout_layout_qualifiers(prog, linked, shader_list, num_shaders); in link_intrastage_shaders()
2528 if (linked->Stage != MESA_SHADER_FRAGMENT) in link_intrastage_shaders()
2535 populate_symbol_table(linked, shader_list[0]->symbols); in link_intrastage_shaders()
2541 _mesa_get_main_function_signature(linked->symbols); in link_intrastage_shaders()
2548 move_non_declarations(linked->ir, (exec_node *) &main_sig->body, false, in link_intrastage_shaders()
2549 linked); in link_intrastage_shaders()
2556 insertion_point, true, linked); in link_intrastage_shaders()
2560 if (!link_function_calls(prog, linked, shader_list, num_shaders)) { in link_intrastage_shaders()
2561 _mesa_delete_linked_shader(ctx, linked); in link_intrastage_shaders()
2565 if (linked->Stage != MESA_SHADER_FRAGMENT) in link_intrastage_shaders()
2566 link_output_variables(linked, shader_list, num_shaders); in link_intrastage_shaders()
2573 v.run(linked->ir); in link_intrastage_shaders()
2580 len_v.run(linked->ir); in link_intrastage_shaders()
2583 link_uniform_blocks(mem_ctx, ctx, prog, linked, &ubo_blocks, in link_intrastage_shaders()
2587 ctx->Const.Program[linked->Stage].MaxUniformBlocks; in link_intrastage_shaders()
2590 _mesa_shader_stage_to_string(linked->Stage), in link_intrastage_shaders()
2595 ctx->Const.Program[linked->Stage].MaxShaderStorageBlocks; in link_intrastage_shaders()
2598 _mesa_shader_stage_to_string(linked->Stage), in link_intrastage_shaders()
2603 _mesa_delete_linked_shader(ctx, linked); in link_intrastage_shaders()
2608 linked->Program->sh.UniformBlocks = in link_intrastage_shaders()
2609 ralloc_array(linked, gl_uniform_block *, num_ubo_blocks); in link_intrastage_shaders()
2610 ralloc_steal(linked, ubo_blocks); in link_intrastage_shaders()
2612 linked->Program->sh.UniformBlocks[i] = &ubo_blocks[i]; in link_intrastage_shaders()
2614 linked->Program->sh.NumUniformBlocks = num_ubo_blocks; in link_intrastage_shaders()
2615 linked->Program->info.num_ubos = num_ubo_blocks; in link_intrastage_shaders()
2618 linked->Program->sh.ShaderStorageBlocks = in link_intrastage_shaders()
2619 ralloc_array(linked, gl_uniform_block *, num_ssbo_blocks); in link_intrastage_shaders()
2620 ralloc_steal(linked, ssbo_blocks); in link_intrastage_shaders()
2622 linked->Program->sh.ShaderStorageBlocks[i] = &ssbo_blocks[i]; in link_intrastage_shaders()
2624 linked->Program->info.num_ssbos = num_ssbo_blocks; in link_intrastage_shaders()
2629 validate_ir_tree(linked->ir); in link_intrastage_shaders()
2632 if (linked->Stage == MESA_SHADER_GEOMETRY) { in link_intrastage_shaders()
2637 foreach_in_list(ir_instruction, ir, linked->ir) { in link_intrastage_shaders()
2643 lower_vertex_id(linked); in link_intrastage_shaders()
2646 lower_cs_derived(linked); in link_intrastage_shaders()
2650 linked->SourceChecksum = 0; in link_intrastage_shaders()
2654 linked->SourceChecksum ^= shader_list[i]->SourceChecksum; in link_intrastage_shaders()
2658 return linked; in link_intrastage_shaders()