diff options
author | Nian Wu <nian.wu@intel.com> | 2007-03-16 17:00:24 +0800 |
---|---|---|
committer | Nian Wu <nian.wu@intel.com> | 2007-03-16 17:00:24 +0800 |
commit | a02870f4f61a66560b3eb75f98a7fe57ebcb6ed6 (patch) | |
tree | 8f1ecfc19e60d583969fa1e34c24e86e877ef2f6 /src/mesa/shader/program.c | |
parent | d63eef4b86af02aea5b26f90de9cf3d46aee398c (diff) | |
parent | 95764262a7f2dfda761a0dbd87c3d9b12df0d534 (diff) |
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
Diffstat (limited to 'src/mesa/shader/program.c')
-rw-r--r-- | src/mesa/shader/program.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c index 490f919445..98daf7062f 100644 --- a/src/mesa/shader/program.c +++ b/src/mesa/shader/program.c @@ -1480,6 +1480,20 @@ _mesa_realloc_instructions(struct prog_instruction *oldInst, return newInst; } +/** + * Copy an array of program instructions. + * \param dest pointer to destination. + * \param src pointer to source. + * \param n number of instructions to copy. + * \return pointer to destination. + */ +struct prog_instruction * +_mesa_copy_instructions (struct prog_instruction *dest, + const struct prog_instruction *src, GLuint n) +{ + return _mesa_memcpy (dest, src, n * sizeof (struct prog_instruction)); +} + /** * Basic info about each instruction |