Mesa (master): nvc0: s/nblocksx/nblocksy for height in resource_copy_region

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Sun Mar 13 12:25:28 UTC 2011


Module: Mesa
Branch: master
Commit: 11f07a35f4734401999c00749e36f39d3e7ad161
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=11f07a35f4734401999c00749e36f39d3e7ad161

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Sat Mar  5 22:29:49 2011 +0100

nvc0: s/nblocksx/nblocksy for height in resource_copy_region

---

 src/gallium/drivers/nvc0/nvc0_surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/nvc0/nvc0_surface.c b/src/gallium/drivers/nvc0/nvc0_surface.c
index 17fc51b..fc5f45e 100644
--- a/src/gallium/drivers/nvc0/nvc0_surface.c
+++ b/src/gallium/drivers/nvc0/nvc0_surface.c
@@ -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,




More information about the mesa-commit mailing list