mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
fix memcpy bugs
This commit is contained in:
parent
1553eba50c
commit
64ffc9540b
1 changed files with 2 additions and 2 deletions
|
|
@ -526,7 +526,7 @@ softpipe_get_tile(struct pipe_context *pipe,
|
|||
pDest = (ubyte *) p;
|
||||
|
||||
for (i = 0; i < h; i++) {
|
||||
memcpy(pDest, pSrc, w0 * 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, w0 * cpp);
|
||||
memcpy(pDest, pSrc, w * cpp);
|
||||
pDest += ps->region->pitch * cpp;
|
||||
pSrc += src_stride;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue