llvmpipe: fix texture image size calculation
authorBrian Paul <brianp@vmware.com>
Tue, 11 May 2010 17:48:35 +0000 (11:48 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 11 May 2010 17:52:06 +0000 (11:52 -0600)
commit08e443a1c8218e43dcd953859843d95d9020a892
treede7399ea845c7aa81a0e6ed842570fe488109795
parentfea189d6e4f0c09eb0d005c5fa06db43b56e2e37
llvmpipe: fix texture image size calculation

We were allocating too much memory for linear layouts.  The block_size
factor is already included in the row_stride and should not be used in
the img_stride calculation.  This is typically a 4x savings!
src/gallium/drivers/llvmpipe/lp_texture.c