r600g: fix typo in previous s3tc commit
authorDave Airlie <airlied@redhat.com>
Wed, 16 Feb 2011 06:51:41 +0000 (16:51 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 16 Feb 2011 06:51:41 +0000 (16:51 +1000)
pointed out by Marek on irc.

src/gallium/drivers/r600/r600_blit.c

index 06375f72d19d431b2c0fe8fdf511df656c15a8e1..31d5e3f73b6966774f81ed7d5e9fe1f7fcc0e7ab 100644 (file)
@@ -287,7 +287,7 @@ static void r600_resource_copy_region(struct pipe_context *ctx,
                restore_orig[1] = TRUE;
                /* translate the dst box as well */
                dstx = util_format_get_nblocksx(orig_info[1].format, dstx);
-               dsty = util_format_get_nblocksx(orig_info[1].format, dsty);
+               dsty = util_format_get_nblocksy(orig_info[1].format, dsty);
        }
 
        r600_hw_copy_region(ctx, dst, dst_level, dstx, dsty, dstz,