llvmpipe: simplify buffer allocation logic.
authorRoland Scheidegger <sroland@vmware.com>
Thu, 21 Feb 2013 16:13:34 +0000 (17:13 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 22 Feb 2013 03:34:07 +0000 (04:34 +0100)
commit66c3cd0be31aeee8953015f45cc36a85516f2fc6
tree970c749a2adf5bacabaf7bb7b90462e627f146fd
parent2cfee2295f1ea00cfd3bc5333c62150a05bff193
llvmpipe: simplify buffer allocation logic.

Now with buffer formats clarification don't need all that logic any longer.
(Note that it never would have worked in any case, because blockwidth and
blockheight were swapped any allocation with multi-byte format would have
had zero size.)

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_texture.c