summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_surface.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-04-19 17:05:05 -0600
committerBrian Paul <brianp@vmware.com>2010-04-19 17:07:25 -0600
commitf4071e55dba8c0f45f3a7f59135b34e5b81fdab8 (patch)
tree09145390a1500ea50a33ed8e7a1bdaea67d47278 /src/gallium/drivers/llvmpipe/lp_surface.c
parent2cad62475b8263472f6fbd541b5b8ec2a1d40e62 (diff)
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.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_surface.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_surface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_surface.c b/src/gallium/drivers/llvmpipe/lp_surface.c
index 4fee40fd09..155b7fc4ce 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);
}
}