Lines Matching refs:prog
349 GLboolean relAddr, const struct gl_program *prog, in reg_string() argument
371 sprintf(str, "%s", arb_input_attrib_string(index, prog->Target)); in reg_string()
374 sprintf(str, "%s", arb_output_attrib_string(index, prog->Target)); in reg_string()
400 = prog->Parameters->Parameters + index; in reg_string()
417 if (prog->Target == GL_VERTEX_PROGRAM_ARB) in reg_string()
568 const struct gl_program *prog) in fprint_dst_reg() argument
572 dstReg->Index, mode, dstReg->RelAddr, prog, in fprint_dst_reg()
596 const struct gl_program *prog) in fprint_src_reg() argument
603 srcReg->Index, mode, srcReg->RelAddr, prog, in fprint_src_reg()
633 const struct gl_program *prog) in _mesa_fprint_alu_instruction() argument
647 fprint_dst_reg(f, &inst->DstReg, mode, prog); in _mesa_fprint_alu_instruction()
657 fprint_src_reg(f, inst->SrcReg + j, mode, prog); in _mesa_fprint_alu_instruction()
683 const struct gl_program *prog) in _mesa_fprint_instruction_opt() argument
717 fprint_dst_reg(f, &inst->DstReg, mode, prog); in _mesa_fprint_instruction_opt()
734 fprint_dst_reg(f, &inst->DstReg, mode, prog); in _mesa_fprint_instruction_opt()
736 fprint_src_reg(f, &inst->SrcReg[0], mode, prog); in _mesa_fprint_instruction_opt()
739 fprint_src_reg(f, &inst->SrcReg[1], mode, prog); in _mesa_fprint_instruction_opt()
741 fprint_src_reg(f, &inst->SrcReg[2], mode, prog); in _mesa_fprint_instruction_opt()
763 fprint_src_reg(f, &inst->SrcReg[0], mode, prog); in _mesa_fprint_instruction_opt()
778 fprint_dst_reg(f, &inst->DstReg, mode, prog); in _mesa_fprint_instruction_opt()
780 fprint_src_reg(f, &inst->SrcReg[0], mode, prog); in _mesa_fprint_instruction_opt()
794 fprint_src_reg(f, &inst->SrcReg[0], mode, prog); in _mesa_fprint_instruction_opt()
887 mode, prog); in _mesa_fprint_instruction_opt()
893 mode, prog); in _mesa_fprint_instruction_opt()
905 const struct gl_program *prog) in _mesa_print_instruction_opt() argument
907 return _mesa_fprint_instruction_opt(stderr, inst, indent, mode, prog); in _mesa_print_instruction_opt()
925 const struct gl_program *prog, in _mesa_fprint_program_opt() argument
931 switch (prog->Target) { in _mesa_fprint_program_opt()
938 fprintf(f, "# Vertex Program/Shader %u\n", prog->Id); in _mesa_fprint_program_opt()
947 fprintf(f, "# Fragment Program/Shader %u\n", prog->Id); in _mesa_fprint_program_opt()
953 for (i = 0; i < prog->NumInstructions; i++) { in _mesa_fprint_program_opt()
956 indent = _mesa_fprint_instruction_opt(f, prog->Instructions + i, in _mesa_fprint_program_opt()
957 indent, mode, prog); in _mesa_fprint_program_opt()
966 _mesa_print_program(const struct gl_program *prog) in _mesa_print_program() argument
968 _mesa_fprint_program_opt(stderr, prog, PROG_PRINT_DEBUG, GL_TRUE); in _mesa_print_program()
1003 const struct gl_program *prog) in _mesa_fprint_program_parameters() argument
1008 (uint64_t) prog->InputsRead, binary(prog->InputsRead)); in _mesa_fprint_program_parameters()
1010 (uint64_t) prog->OutputsWritten, binary(prog->OutputsWritten)); in _mesa_fprint_program_parameters()
1011 fprintf(f, "NumInstructions=%d\n", prog->NumInstructions); in _mesa_fprint_program_parameters()
1012 fprintf(f, "NumTemporaries=%d\n", prog->NumTemporaries); in _mesa_fprint_program_parameters()
1013 fprintf(f, "NumParameters=%d\n", prog->NumParameters); in _mesa_fprint_program_parameters()
1014 fprintf(f, "NumAttributes=%d\n", prog->NumAttributes); in _mesa_fprint_program_parameters()
1015 fprintf(f, "NumAddressRegs=%d\n", prog->NumAddressRegs); in _mesa_fprint_program_parameters()
1017 prog->IndirectRegisterFiles, binary(prog->IndirectRegisterFiles)); in _mesa_fprint_program_parameters()
1019 prog->SamplersUsed, binary(prog->SamplersUsed)); in _mesa_fprint_program_parameters()
1022 fprintf(f, "%d ", prog->SamplerUnits[i]); in _mesa_fprint_program_parameters()
1026 _mesa_load_state_parameters(ctx, prog->Parameters); in _mesa_fprint_program_parameters()
1031 const GLfloat *p = prog->LocalParams[i]; in _mesa_fprint_program_parameters()
1035 _mesa_print_parameter_list(prog->Parameters); in _mesa_fprint_program_parameters()
1043 _mesa_print_program_parameters(struct gl_context *ctx, const struct gl_program *prog) in _mesa_print_program_parameters() argument
1045 _mesa_fprint_program_parameters(stderr, ctx, prog); in _mesa_print_program_parameters()
1151 const struct gl_program *const prog = shader->Program; in _mesa_append_uniforms_to_file() local
1170 _mesa_fprint_parameter_list(f, prog->Parameters); in _mesa_append_uniforms_to_file()