Mesa (master): r600g: fix typo causing segfault.

Dave Airlie airlied at kemper.freedesktop.org
Wed Sep 1 03:56:57 UTC 2010


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Sep  1 13:54:38 2010 +1000

r600g: fix typo causing segfault.

fixes warning that
r600_blit.c: In function ‘r600_resource_copy_region’:
r600_blit.c:136: warning: passing argument 1 of ‘util_resource_copy_region’ from incompatible pointer type

and also 7 more piglit tests.

---

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

diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c
index dbcd6cd..a8263cc 100644
--- a/src/gallium/drivers/r600/r600_blit.c
+++ b/src/gallium/drivers/r600/r600_blit.c
@@ -132,7 +132,7 @@ static void r600_resource_copy_region(struct pipe_context *ctx,
 				      unsigned srcx, unsigned srcy, unsigned srcz,
 				      unsigned width, unsigned height)
 {
-	util_resource_copy_region(pipe, dst, subdst, dstx, dsty, dstz,
+	util_resource_copy_region(ctx, dst, subdst, dstx, dsty, dstz,
 				  src, subsrc, srcx, srcy, srcz, width, height);
 }
 




More information about the mesa-commit mailing list