Lines Matching refs:linked
2278 gl_linked_shader *linked = rzalloc(NULL, struct gl_linked_shader); in link_intrastage_shaders() local
2279 linked->Stage = shader_list[0]->Stage; in link_intrastage_shaders()
2288 _mesa_delete_linked_shader(ctx, linked); in link_intrastage_shaders()
2295 linked->Program = gl_prog; in link_intrastage_shaders()
2297 linked->ir = new(linked) exec_list; in link_intrastage_shaders()
2298 clone_ir_list(mem_ctx, linked->ir, main->ir); in link_intrastage_shaders()
2300 link_fs_inout_layout_qualifiers(prog, linked, shader_list, num_shaders); in link_intrastage_shaders()
2306 if (linked->Stage != MESA_SHADER_FRAGMENT) in link_intrastage_shaders()
2311 populate_symbol_table(linked, shader_list[0]->symbols); in link_intrastage_shaders()
2317 _mesa_get_main_function_signature(linked->symbols); in link_intrastage_shaders()
2324 move_non_declarations(linked->ir, (exec_node *) &main_sig->body, false, in link_intrastage_shaders()
2325 linked); in link_intrastage_shaders()
2332 insertion_point, true, linked); in link_intrastage_shaders()
2336 if (!link_function_calls(prog, linked, shader_list, num_shaders)) { in link_intrastage_shaders()
2337 _mesa_delete_linked_shader(ctx, linked); in link_intrastage_shaders()
2346 v.run(linked->ir); in link_intrastage_shaders()
2350 link_uniform_blocks(mem_ctx, ctx, prog, linked, &ubo_blocks, in link_intrastage_shaders()
2354 _mesa_delete_linked_shader(ctx, linked); in link_intrastage_shaders()
2359 linked->Program->sh.UniformBlocks = in link_intrastage_shaders()
2360 ralloc_array(linked, gl_uniform_block *, num_ubo_blocks); in link_intrastage_shaders()
2361 ralloc_steal(linked, ubo_blocks); in link_intrastage_shaders()
2363 linked->Program->sh.UniformBlocks[i] = &ubo_blocks[i]; in link_intrastage_shaders()
2365 linked->Program->info.num_ubos = num_ubo_blocks; in link_intrastage_shaders()
2368 linked->Program->sh.ShaderStorageBlocks = in link_intrastage_shaders()
2369 ralloc_array(linked, gl_uniform_block *, num_ssbo_blocks); in link_intrastage_shaders()
2370 ralloc_steal(linked, ssbo_blocks); in link_intrastage_shaders()
2372 linked->Program->sh.ShaderStorageBlocks[i] = &ssbo_blocks[i]; in link_intrastage_shaders()
2374 linked->Program->info.num_ssbos = num_ssbo_blocks; in link_intrastage_shaders()
2379 validate_ir_tree(linked->ir); in link_intrastage_shaders()
2382 if (linked->Stage == MESA_SHADER_GEOMETRY) { in link_intrastage_shaders()
2387 foreach_in_list(ir_instruction, ir, linked->ir) { in link_intrastage_shaders()
2393 lower_vertex_id(linked); in link_intrastage_shaders()
2396 lower_cs_derived(linked); in link_intrastage_shaders()
2400 linked->SourceChecksum = 0; in link_intrastage_shaders()
2404 linked->SourceChecksum ^= shader_list[i]->SourceChecksum; in link_intrastage_shaders()
2408 return linked; in link_intrastage_shaders()