Lines Matching refs:whole_program
446 struct gl_shader_program *whole_program; in standalone_compile_shader() local
448 whole_program = rzalloc (NULL, struct gl_shader_program); in standalone_compile_shader()
449 assert(whole_program != NULL); in standalone_compile_shader()
450 whole_program->data = rzalloc(whole_program, struct gl_shader_program_data); in standalone_compile_shader()
451 assert(whole_program->data != NULL); in standalone_compile_shader()
452 whole_program->data->InfoLog = ralloc_strdup(whole_program->data, ""); in standalone_compile_shader()
455 whole_program->AttributeBindings = new string_to_uint_map; in standalone_compile_shader()
456 whole_program->FragDataBindings = new string_to_uint_map; in standalone_compile_shader()
457 whole_program->FragDataIndexBindings = new string_to_uint_map; in standalone_compile_shader()
460 whole_program->Shaders = in standalone_compile_shader()
461 reralloc(whole_program, whole_program->Shaders, in standalone_compile_shader()
462 struct gl_shader *, whole_program->NumShaders + 1); in standalone_compile_shader()
463 assert(whole_program->Shaders != NULL); in standalone_compile_shader()
465 struct gl_shader *shader = rzalloc(whole_program, gl_shader); in standalone_compile_shader()
467 whole_program->Shaders[whole_program->NumShaders] = shader; in standalone_compile_shader()
468 whole_program->NumShaders++; in standalone_compile_shader()
492 shader->Source = load_text_file(whole_program, files[i]); in standalone_compile_shader()
516 _mesa_clear_shader_program_data(ctx, whole_program); in standalone_compile_shader()
519 link_shaders(ctx, whole_program); in standalone_compile_shader()
521 const gl_shader_stage stage = whole_program->Shaders[0]->Stage; in standalone_compile_shader()
523 whole_program->data->LinkStatus = linking_success; in standalone_compile_shader()
524 whole_program->_LinkedShaders[stage] = in standalone_compile_shader()
525 link_intrastage_shaders(whole_program /* mem_ctx */, in standalone_compile_shader()
527 whole_program, in standalone_compile_shader()
528 whole_program->Shaders, in standalone_compile_shader()
535 if (whole_program->_LinkedShaders[stage] != NULL) { in standalone_compile_shader()
536 assert(whole_program->data->LinkStatus); in standalone_compile_shader()
542 whole_program->_LinkedShaders[stage]->ir; in standalone_compile_shader()
558 status = (whole_program->data->LinkStatus) ? EXIT_SUCCESS : EXIT_FAILURE; in standalone_compile_shader()
560 if (strlen(whole_program->data->InfoLog) > 0) { in standalone_compile_shader()
564 printf("%s", whole_program->data->InfoLog); in standalone_compile_shader()
570 struct gl_linked_shader *shader = whole_program->_LinkedShaders[i]; in standalone_compile_shader()
585 struct gl_linked_shader *shader = whole_program->_LinkedShaders[i]; in standalone_compile_shader()
595 return whole_program; in standalone_compile_shader()
599 if (whole_program->_LinkedShaders[i]) in standalone_compile_shader()
600 ralloc_free(whole_program->_LinkedShaders[i]->Program); in standalone_compile_shader()
603 ralloc_free(whole_program); in standalone_compile_shader()
608 standalone_compiler_cleanup(struct gl_shader_program *whole_program) in standalone_compiler_cleanup() argument
611 if (whole_program->_LinkedShaders[i]) in standalone_compiler_cleanup()
612 ralloc_free(whole_program->_LinkedShaders[i]->Program); in standalone_compiler_cleanup()
615 delete whole_program->AttributeBindings; in standalone_compiler_cleanup()
616 delete whole_program->FragDataBindings; in standalone_compiler_cleanup()
617 delete whole_program->FragDataIndexBindings; in standalone_compiler_cleanup()
619 ralloc_free(whole_program); in standalone_compiler_cleanup()