Home | Info | Community | Development | myReactOS | Contact Us
[static]
Search instructions for references to program parameters. When found, increment the parameter index by 'offset'. Used when combining programs.
Definition at line 648 of file program.c.
Referenced by _mesa_combine_programs().
{ GLuint i, j; for (i = 0; i < numInst; i++) { for (j = 0; j < _mesa_num_inst_src_regs(inst->Opcode); j++) { GLuint f = inst[i].SrcReg[j].File; if (f == PROGRAM_CONSTANT || f == PROGRAM_UNIFORM || f == PROGRAM_STATE_VAR) { inst[i].SrcReg[j].Index += offset; } } } }