diff options
author | Ben Skeggs <skeggsb@gmail.com> | 2007-12-30 00:37:58 +1100 |
---|---|---|
committer | Ben Skeggs <skeggsb@gmail.com> | 2007-12-30 00:37:58 +1100 |
commit | 09612416d74d92c22bf757fc513a70bec30f15b5 (patch) | |
tree | 5fe27b860ba1ea93a9b97f5b9543e76452cfeffd /src/mesa/drivers | |
parent | 8ed3a69fc8f811c2010615af94a6bb8003c8a296 (diff) |
nouveau: typo fix
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/nouveau_winsys/nv04_surface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/nouveau_winsys/nv04_surface.c b/src/mesa/drivers/dri/nouveau_winsys/nv04_surface.c index baf4804dde..2288f9c71a 100644 --- a/src/mesa/drivers/dri/nouveau_winsys/nv04_surface.c +++ b/src/mesa/drivers/dri/nouveau_winsys/nv04_surface.c @@ -31,7 +31,7 @@ nv04_surface_copy_m2mf(struct nouveau_context *nv, unsigned dx, unsigned dy, unsigned sx, unsigned sy, unsigned w, unsigned h) { struct pipe_surface *dst = nv->surf_dst; - struct pipe_surface *src = nv->surf_dst; + struct pipe_surface *src = nv->surf_src; unsigned dst_offset, src_offset; dst_offset = dst->offset + (dy * dst->pitch + dx) * dst->cpp; @@ -53,8 +53,8 @@ nv04_surface_copy_m2mf(struct nouveau_context *nv, unsigned dx, unsigned dy, OUT_RING (0); h -= count; - src_offset += src->pitch * count; - dst_offset += dst->pitch * count; + src_offset += src->pitch * src->cpp * count; + dst_offset += dst->pitch * dst->cpp * count; } } |