aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_surface.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-04-19 17:15:25 -0600
committerBrian Paul <[email protected]>2010-04-19 17:15:25 -0600
commitbd329d42e8a53ae12055617f56699732ff70081e (patch)
tree522bfaa9dabcdcccef4d1c3e6de1b819980a62b7 /src/gallium/drivers/llvmpipe/lp_surface.c
parent079081222a6881655e112351a57e0a07b0c7b031 (diff)
llvmpipe: use llvmpipe_resource_stride()
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_surface.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_surface.c5
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 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);
}
}