diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_surface.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_surface.c b/src/gallium/drivers/llvmpipe/lp_surface.c index 155b7fc4ce..1a116989d4 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); } } |