From bd329d42e8a53ae12055617f56699732ff70081e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 19 Apr 2010 17:15:25 -0600 Subject: [PATCH] llvmpipe: use llvmpipe_resource_stride() --- src/gallium/drivers/llvmpipe/lp_surface.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } } -- 2.30.2