nv50: fix sx/dx typo in transfer_rect_m2mf
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 28 Jul 2009 22:51:35 +0000 (00:51 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 28 Jul 2009 23:40:34 +0000 (09:40 +1000)
src/gallium/drivers/nv50/nv50_transfer.c

index d0b7f0bef43900cce8f4126703b4bd05604764ce..6ff375951e4f8de6b2b9cb26b5e6a27861dbb63b 100644 (file)
@@ -76,13 +76,13 @@ nv50_transfer_rect_m2mf(struct pipe_screen *pscreen, struct nouveau_bo *src_bo,
                OUT_RELOCl(chan, dst_bo, dst_offset, dst_reloc);
                if (src_bo->tile_flags) {
                        BEGIN_RING(chan, m2mf, 0x0218, 1);
-                       OUT_RING  (chan, (dy << 16) | sx);
+                       OUT_RING  (chan, (sy << 16) | sx);
                } else {
                        src_offset += (line_count * src_pitch);
                }
                if (dst_bo->tile_flags) {
                        BEGIN_RING(chan, m2mf, 0x0234, 1);
-                       OUT_RING  (chan, (sy << 16) | dx);
+                       OUT_RING  (chan, (dy << 16) | dx);
                } else {
                        dst_offset += (line_count * dst_pitch);
                }