projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bf9122
)
[965] Remove an open-coded memcpy.
author
Eric Anholt
<eric@anholt.net>
Thu, 10 Jan 2008 23:05:39 +0000
(15:05 -0800)
committer
Eric Anholt
<eric@anholt.net>
Thu, 10 Jan 2008 23:05:39 +0000
(15:05 -0800)
src/mesa/drivers/dri/i965/brw_draw_upload.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_draw_upload.c
b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index 0df61f2972e0eb411b187d215cb309531862c9f7..8729022e484738d2f9d543abf1f587f345161a50 100644
(file)
--- 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
;
}
}
}