nvc0: s/nblocksx/nblocksy for height in resource_copy_region
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 5 Mar 2011 21:29:49 +0000 (22:29 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sun, 13 Mar 2011 12:23:54 +0000 (13:23 +0100)
src/gallium/drivers/nvc0/nvc0_surface.c

index 17fc51b..fc5f45e 100644 (file)
@@ -240,7 +240,7 @@ nvc0_resource_copy_region(struct pipe_context *pipe,
       struct nvc0_m2mf_rect drect, srect;
       unsigned i;
       unsigned nx = util_format_get_nblocksx(src->format, src_box->width);
-      unsigned ny = util_format_get_nblocksx(src->format, src_box->height);
+      unsigned ny = util_format_get_nblocksy(src->format, src_box->height);
 
       nvc0_setup_m2mf_rect(&drect, dst, dst_level, dstx, dsty, dstz);
       nvc0_setup_m2mf_rect(&srect, src, src_level,