Lines Matching full:newinst
580 struct prog_instruction *newInst;
594 newInst = _mesa_alloc_instructions(newLen);
595 if (!newInst) {
600 _mesa_copy_instructions(newInst, prog->Instructions, start);
603 _mesa_init_instructions(newInst + start, count);
606 _mesa_copy_instructions(newInst + start + count,
614 prog->Instructions = newInst;
629 struct prog_instruction *newInst;
643 newInst = _mesa_alloc_instructions(newLen);
644 if (!newInst) {
649 _mesa_copy_instructions(newInst, prog->Instructions, start);
652 _mesa_copy_instructions(newInst + start,
660 prog->Instructions = newInst;
727 struct prog_instruction *newInst;
740 newInst = _mesa_alloc_instructions(newLength);
741 if (!newInst)
744 _mesa_copy_instructions(newInst, progA->Instructions, lenA);
745 _mesa_copy_instructions(newInst + lenA, progB->Instructions, lenB);
749 newInst[lenA + i].BranchTarget += lenA;
753 newProg->Instructions = newInst;
815 replace_registers(newInst, lenA,
819 replace_registers(newInst + lenA, lenB,
844 adjust_param_indexes(newInst + lenA, lenB, numParamsA);