llvmpipe: fix broken compressed cube maps
authorBrian Paul <brianp@vmware.com>
Tue, 4 May 2010 23:15:26 +0000 (17:15 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 4 May 2010 23:17:04 +0000 (17:17 -0600)
commit87022efb4f1e40a70d34beb30754854608a49246
tree94b1eba7d0b954c33e1aad275dcd35520dcd7005
parent0f0c0368faf38d73b0bbbb6e0a147bc94564d3a1
llvmpipe: fix broken compressed cube maps

When the cube faces were stored in a compressed format, the img_stride
values were wrong and didn't match the per-face size computed in the
tex_image_face_size() function.  This caused bad rendering or segfaults.
src/gallium/drivers/llvmpipe/lp_texture.c