nouveau: dst offset is correct
authorPatrice Mandin <patmandin@gmail.com>
Tue, 10 Feb 2009 17:44:08 +0000 (18:44 +0100)
committerPatrice Mandin <patmandin@gmail.com>
Tue, 10 Feb 2009 17:44:27 +0000 (18:44 +0100)
src/gallium/drivers/nv04/nv04_surface_2d.c

index a8aa12cb8f42e5fe643fe4c9d911bdc81cf5276a..ad11b2fd45a507c33513844ab2b76fc546eb4ede 100644 (file)
@@ -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;