r600g: fix typo causing segfault.
authorDave Airlie <airlied@redhat.com>
Wed, 1 Sep 2010 03:54:38 +0000 (13:54 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 1 Sep 2010 03:55:56 +0000 (13:55 +1000)
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

index dbcd6cdea8bf44fdc827b21616f08e48f8264422..a8263ccbce930c249db546a2c1d8a4ec197d36dd 100644 (file)
@@ -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);
 }