From: Brian Paul Date: Mon, 19 Apr 2010 23:15:25 +0000 (-0600) Subject: llvmpipe: use llvmpipe_resource_stride() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd329d42e8a53ae12055617f56699732ff70081e;p=mesa.git llvmpipe: use llvmpipe_resource_stride() --- diff --git a/src/gallium/drivers/llvmpipe/lp_surface.c b/src/gallium/drivers/llvmpipe/lp_surface.c index 155b7fc4cee..1a116989d4c 100644 --- a/src/gallium/drivers/llvmpipe/lp_surface.c +++ b/src/gallium/drivers/llvmpipe/lp_surface.c @@ -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); } }