projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1553eba
)
fix memcpy bugs
author
Brian
<brian.paul@tungstengraphics.com>
Mon, 29 Oct 2007 21:07:23 +0000
(15:07 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Mon, 29 Oct 2007 21:15:34 +0000
(15:15 -0600)
src/mesa/pipe/softpipe/sp_surface.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/softpipe/sp_surface.c
b/src/mesa/pipe/softpipe/sp_surface.c
index
eeaf98c
..
c18fe56
100644
(file)
--- a/
src/mesa/pipe/softpipe/sp_surface.c
+++ b/
src/mesa/pipe/softpipe/sp_surface.c
@@
-526,7
+526,7
@@
softpipe_get_tile(struct pipe_context *pipe,
pDest = (ubyte *) p;
for (i = 0; i < h; i++) {
- memcpy(pDest, pSrc, w
0
* cpp);
+ memcpy(pDest, pSrc, w * cpp);
pDest += dst_stride;
pSrc += ps->region->pitch * cpp;
}
@@
-560,7
+560,7
@@
softpipe_put_tile(struct pipe_context *pipe,
pDest = ps->region->map + ps->offset + (y * ps->region->pitch + x) * cpp;
for (i = 0; i < h; i++) {
- memcpy(pDest, pSrc, w
0
* cpp);
+ memcpy(pDest, pSrc, w * cpp);
pDest += ps->region->pitch * cpp;
pSrc += src_stride;
}