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