• Home
  • Raw
  • Download

Lines Matching refs:whole_program

448    struct gl_shader_program *whole_program;  in standalone_compile_shader()  local
450 whole_program = rzalloc (NULL, struct gl_shader_program); in standalone_compile_shader()
451 assert(whole_program != NULL); in standalone_compile_shader()
452 whole_program->data = rzalloc(whole_program, struct gl_shader_program_data); in standalone_compile_shader()
453 assert(whole_program->data != NULL); in standalone_compile_shader()
454 whole_program->data->InfoLog = ralloc_strdup(whole_program->data, ""); in standalone_compile_shader()
457 whole_program->AttributeBindings = new string_to_uint_map; in standalone_compile_shader()
458 whole_program->FragDataBindings = new string_to_uint_map; in standalone_compile_shader()
459 whole_program->FragDataIndexBindings = new string_to_uint_map; in standalone_compile_shader()
462 whole_program->Shaders = in standalone_compile_shader()
463 reralloc(whole_program, whole_program->Shaders, in standalone_compile_shader()
464 struct gl_shader *, whole_program->NumShaders + 1); in standalone_compile_shader()
465 assert(whole_program->Shaders != NULL); in standalone_compile_shader()
467 struct gl_shader *shader = rzalloc(whole_program, gl_shader); in standalone_compile_shader()
469 whole_program->Shaders[whole_program->NumShaders] = shader; in standalone_compile_shader()
470 whole_program->NumShaders++; in standalone_compile_shader()
494 shader->Source = load_text_file(whole_program, files[i]); in standalone_compile_shader()
518 _mesa_clear_shader_program_data(ctx, whole_program); in standalone_compile_shader()
521 link_shaders(ctx, whole_program); in standalone_compile_shader()
523 const gl_shader_stage stage = whole_program->Shaders[0]->Stage; in standalone_compile_shader()
525 whole_program->data->LinkStatus = LINKING_SUCCESS; in standalone_compile_shader()
526 whole_program->_LinkedShaders[stage] = in standalone_compile_shader()
527 link_intrastage_shaders(whole_program /* mem_ctx */, in standalone_compile_shader()
529 whole_program, in standalone_compile_shader()
530 whole_program->Shaders, in standalone_compile_shader()
537 if (whole_program->_LinkedShaders[stage] != NULL) { in standalone_compile_shader()
538 assert(whole_program->data->LinkStatus); in standalone_compile_shader()
544 whole_program->_LinkedShaders[stage]->ir; in standalone_compile_shader()
560 status = (whole_program->data->LinkStatus) ? EXIT_SUCCESS : EXIT_FAILURE; in standalone_compile_shader()
562 if (strlen(whole_program->data->InfoLog) > 0) { in standalone_compile_shader()
566 printf("%s", whole_program->data->InfoLog); in standalone_compile_shader()
572 struct gl_linked_shader *shader = whole_program->_LinkedShaders[i]; in standalone_compile_shader()
587 struct gl_linked_shader *shader = whole_program->_LinkedShaders[i]; in standalone_compile_shader()
597 return whole_program; in standalone_compile_shader()
601 if (whole_program->_LinkedShaders[i]) in standalone_compile_shader()
602 ralloc_free(whole_program->_LinkedShaders[i]->Program); in standalone_compile_shader()
605 ralloc_free(whole_program); in standalone_compile_shader()
610 standalone_compiler_cleanup(struct gl_shader_program *whole_program) in standalone_compiler_cleanup() argument
613 if (whole_program->_LinkedShaders[i]) in standalone_compiler_cleanup()
614 ralloc_free(whole_program->_LinkedShaders[i]->Program); in standalone_compiler_cleanup()
617 delete whole_program->AttributeBindings; in standalone_compiler_cleanup()
618 delete whole_program->FragDataBindings; in standalone_compiler_cleanup()
619 delete whole_program->FragDataIndexBindings; in standalone_compiler_cleanup()
621 ralloc_free(whole_program); in standalone_compiler_cleanup()