From: Eric Anholt Date: Thu, 10 Jan 2008 23:05:39 +0000 (-0800) Subject: [965] Remove an open-coded memcpy. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=540faf5f91057ef311999afc5a6366bebe7dec33;p=mesa.git [965] Remove an open-coded memcpy. --- diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c index 0df61f2972e..8729022e484 100644 --- a/src/mesa/drivers/dri/i965/brw_draw_upload.c +++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c @@ -257,12 +257,12 @@ static void copy_strided_array( GLubyte *dest, if (size == stride) memcpy(dest, src, count * size); else { - GLuint i,j; + GLuint i; for (i = 0; i < count; i++) { - for (j = 0; j < size; j++) - *dest++ = *src++; - src += (stride - size); + memcpy(dest, src, size); + src += stride; + dest += size; } } }