Lines Matching refs:prog
226 void set_and_process(struct gl_shader_program *prog, in set_and_process() argument
236 for (unsigned i = 0; i < prog->NumUniformBlocks; i++) { in set_and_process()
237 if (!strcmp(prog->UniformBlocks[i].Name, in set_and_process()
520 link_assign_uniform_locations(struct gl_shader_program *prog) in link_assign_uniform_locations() argument
522 ralloc_free(prog->UniformStorage); in link_assign_uniform_locations()
523 prog->UniformStorage = NULL; in link_assign_uniform_locations()
524 prog->NumUserUniformStorage = 0; in link_assign_uniform_locations()
526 if (prog->UniformHash != NULL) { in link_assign_uniform_locations()
527 prog->UniformHash->clear(); in link_assign_uniform_locations()
529 prog->UniformHash = new string_to_uint_map; in link_assign_uniform_locations()
541 memset(prog->SamplerUnits, 0, sizeof(prog->SamplerUnits)); in link_assign_uniform_locations()
544 if (prog->_LinkedShaders[i] == NULL) in link_assign_uniform_locations()
547 if (!link_update_uniform_buffer_variables(prog->_LinkedShaders[i])) in link_assign_uniform_locations()
558 count_uniform_size uniform_size(prog->UniformHash); in link_assign_uniform_locations()
560 if (prog->_LinkedShaders[i] == NULL) in link_assign_uniform_locations()
567 foreach_list(node, prog->_LinkedShaders[i]->ir) { in link_assign_uniform_locations()
581 prog->_LinkedShaders[i]->num_samplers = uniform_size.num_shader_samplers; in link_assign_uniform_locations()
582 prog->_LinkedShaders[i]->num_uniform_components = in link_assign_uniform_locations()
595 rzalloc_array(prog, struct gl_uniform_storage, num_user_uniforms); in link_assign_uniform_locations()
602 parcel_out_uniform_storage parcel(prog->UniformHash, uniforms, data); in link_assign_uniform_locations()
605 if (prog->_LinkedShaders[i] == NULL) in link_assign_uniform_locations()
612 foreach_list(node, prog->_LinkedShaders[i]->ir) { in link_assign_uniform_locations()
623 parcel.set_and_process(prog, prog->_LinkedShaders[i], var); in link_assign_uniform_locations()
626 prog->_LinkedShaders[i]->active_samplers = parcel.shader_samplers_used; in link_assign_uniform_locations()
627 prog->_LinkedShaders[i]->shadow_samplers = parcel.shader_shadow_samplers; in link_assign_uniform_locations()
630 assert(sizeof(prog->SamplerTargets) == sizeof(parcel.targets)); in link_assign_uniform_locations()
631 memcpy(prog->SamplerTargets, parcel.targets, sizeof(prog->SamplerTargets)); in link_assign_uniform_locations()
641 prog->NumUserUniformStorage = num_user_uniforms; in link_assign_uniform_locations()
642 prog->UniformStorage = uniforms; in link_assign_uniform_locations()
644 link_set_uniform_initializers(prog); in link_assign_uniform_locations()