gallivm/llvmpipe: replace 'int stride' with 'int row_stride[MAX_LEVELS]'
authorBrian Paul <brianp@vmware.com>
Thu, 11 Mar 2010 21:46:06 +0000 (14:46 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 11 Mar 2010 21:49:01 +0000 (14:49 -0700)
commit53efb634a0c134feebb5a3e47fc33660694be9c3
tree5f31c7c35a56e5fadd536f659428f406b3d4df67
parent272f399434ad6b33a8444c287c5126987a222864
gallivm/llvmpipe: replace 'int stride' with 'int row_stride[MAX_LEVELS]'

The stride depends on the mipmap level.  Rename to row_stride to
distinguish from img_stride for 3D textures.

Fixes incorrect texel addressing in small mipmap levels.
src/gallium/auxiliary/gallivm/lp_bld_sample.h
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
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_tex_sample_llvm.c