Mesa (gallium-0.2): nouveau: dst offset is correct
Patrice Mandin
pmandin at kemper.freedesktop.org
Tue Feb 10 17:44:43 UTC 2009
Module: Mesa
Branch: gallium-0.2
Commit: 02401cbaf021833c77c501d697d912f295546f58
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=02401cbaf021833c77c501d697d912f295546f58
Author: Patrice Mandin <patmandin at gmail.com>
Date: Tue Feb 10 18:44:08 2009 +0100
nouveau: dst offset is correct
---
src/gallium/drivers/nv04/nv04_surface_2d.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/gallium/drivers/nv04/nv04_surface_2d.c b/src/gallium/drivers/nv04/nv04_surface_2d.c
index a8aa12c..ad11b2f 100644
--- a/src/gallium/drivers/nv04/nv04_surface_2d.c
+++ b/src/gallium/drivers/nv04/nv04_surface_2d.c
@@ -163,11 +163,9 @@ nv04_surface_copy_swizzle(struct nv04_surface_2d *ctx,
}
}
- /* FIXME: need to find next offset for both source and dest */
- src_offset += w * h * dst->block.size;
- /*src_offset = align(src_offset, 64);*/
+ /* FIXME: need to find next offset for source */
+ /*src_offset += w * h * src->block.size;*/
dst_offset += w * h * dst->block.size;
- /*dst_offset = align(dst_offset, 64);*/
src_stride >>= 1;
w >>= 1;
h >>= 1;
More information about the mesa-commit
mailing list