llvmpipe: use llvmpipe_resource_stride()
authorBrian Paul <brianp@vmware.com>
Mon, 19 Apr 2010 23:15:25 +0000 (17:15 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 19 Apr 2010 23:15:25 +0000 (17:15 -0600)
src/gallium/drivers/llvmpipe/lp_surface.c

index 155b7fc..1a11698 100644 (file)
@@ -135,10 +135,11 @@ lp_surface_copy(struct pipe_context *pipe,
                                               LP_TEX_LAYOUT_LINEAR);
 
       util_copy_rect(dst_linear_ptr, format,
-                     dst_tex->row_stride[dst->level],
+                     llvmpipe_resource_stride(&dst_tex->base, dst->level),
                      dstx, dsty,
                      width, height,
-                     src_linear_ptr, src_tex->row_stride[src->level],
+                     src_linear_ptr,
+                     llvmpipe_resource_stride(&src_tex->base, src->level),
                      srcx, srcy);
    }
 }