From f4071e55dba8c0f45f3a7f59135b34e5b81fdab8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 19 Apr 2010 17:05:05 -0600 Subject: llvmpipe: get 3D texture image stride from an array rather than computing it This fixes broken 3D texture indexing when the height of the 3D texture was less than 64 (the tile size). It's simpler to pass this as an array (as we do with the row stride) than to compute it on the fly. --- src/gallium/drivers/llvmpipe/lp_surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/llvmpipe/lp_surface.c') diff --git a/src/gallium/drivers/llvmpipe/lp_surface.c b/src/gallium/drivers/llvmpipe/lp_surface.c index 4fee40fd099..155b7fc4cee 100644 --- a/src/gallium/drivers/llvmpipe/lp_surface.c +++ b/src/gallium/drivers/llvmpipe/lp_surface.c @@ -135,10 +135,10 @@ lp_surface_copy(struct pipe_context *pipe, LP_TEX_LAYOUT_LINEAR); util_copy_rect(dst_linear_ptr, format, - dst_tex->stride[dst->level], + dst_tex->row_stride[dst->level], dstx, dsty, width, height, - src_linear_ptr, src_tex->stride[src->level], + src_linear_ptr, src_tex->row_stride[src->level], srcx, srcy); } } -- cgit v1.2.3