llvmpipe: get 3D texture image stride from an array rather than computing it
authorBrian Paul <brianp@vmware.com>
Mon, 19 Apr 2010 23:05:05 +0000 (17:05 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 19 Apr 2010 23:07:25 +0000 (17:07 -0600)
commitf4071e55dba8c0f45f3a7f59135b34e5b81fdab8
tree09145390a1500ea50a33ed8e7a1bdaea67d47278
parent2cad62475b8263472f6fbd541b5b8ec2a1d40e62
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_jit.c
src/gallium/drivers/llvmpipe/lp_jit.h
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/llvmpipe/lp_surface.c
src/gallium/drivers/llvmpipe/lp_tex_sample_llvm.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/llvmpipe/lp_texture.h