Lines Matching defs:program
31 * Create a vertex program to execute the current fixed function T&L pipeline.
43 #include "program/program.h"
44 #include "program/prog_cache.h"
45 #include "program/prog_instruction.h"
46 #include "program/prog_parameter.h"
47 #include "program/prog_print.h"
48 #include "program/prog_statevars.h"
283 * generated program with line/function references for each
313 struct gl_program *program;
315 GLuint max_inst; /** number of instructions allocated for program */
393 if ((GLuint) bit > p->program->arb.NumTemporaries)
394 p->program->arb.NumTemporaries = bit;
454 p->program->info.inputs_read |= (uint64_t)VERT_BIT(input);
468 p->program->info.outputs_written |= BITFIELD64_BIT(output);
486 idx = _mesa_add_unnamed_constant(p->program->Parameters, values, 4,
583 assert(p->program->arb.NumInstructions <= p->max_inst);
585 if (p->program->arb.NumInstructions == p->max_inst) {
586 /* need to extend the program's instruction array */
593 rzalloc_array(p->program, struct prog_instruction, p->max_inst);
595 _mesa_error(NULL, GL_OUT_OF_MEMORY, "vertex program build");
599 _mesa_copy_instructions(newInst, p->program->arb.Instructions,
600 p->program->arb.NumInstructions);
602 ralloc_free(p->program->arb.Instructions);
604 p->program->arb.Instructions = newInst;
607 nr = p->program->arb.NumInstructions++;
609 inst = &p->program->arb.Instructions[nr];
909 * Probably want to shift this to the program compilation phase - if
1653 /* Emit the program, starting with the modelview, projection transforms:
1699 struct gl_program *program,
1707 p.program = program;
1725 p.program->arb.Instructions =
1726 rzalloc_array(program, struct prog_instruction, p.max_inst);
1727 p.program->String = NULL;
1728 p.program->arb.NumInstructions =
1729 p.program->arb.NumTemporaries =
1730 p.program->arb.NumParameters =
1731 p.program->arb.NumAttributes = p.program->arb.NumAddressRegs = 0;
1732 p.program->Parameters = _mesa_new_parameter_list();
1733 p.program->info.inputs_read = 0;
1734 p.program->info.outputs_written = 0;
1739 _mesa_add_separate_state_parameters(p.program, p.state_params);
1745 * Return a vertex program which implements the current fixed-function
1761 /* Look for an already-prepared program for this state:
1769 printf("Build new TNL program\n");