Mesa (master): util: fix copy_rect stride in default transfer_inline_write

Keith Whitwell keithw at kemper.freedesktop.org
Fri May 14 11:19:41 UTC 2010


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

Author: Keith Whitwell <keithw at vmware.com>
Date:   Sat May  8 14:16:46 2010 +0100

util: fix copy_rect stride in default transfer_inline_write

---

 src/gallium/auxiliary/util/u_transfer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_transfer.c b/src/gallium/auxiliary/util/u_transfer.c
index bedace3..69f6fab 100644
--- a/src/gallium/auxiliary/util/u_transfer.c
+++ b/src/gallium/auxiliary/util/u_transfer.c
@@ -35,12 +35,12 @@ void u_default_transfer_inline_write( struct pipe_context *pipe,
    
    util_copy_rect(map,
 		  resource->format,
-		  transfer->stride, /* bytes? */
+		  transfer->stride, /* bytes */
 		  0, 0,
 		  box->width,
 		  box->height,
 		  data,
-		  box->width,	/* bytes? texels? */
+		  stride,       /* bytes */
 		  0, 0);
 
 out:




More information about the mesa-commit mailing list