swr: [rasterizer memory] minify texture width before alignment
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 18 Nov 2016 03:40:29 +0000 (22:40 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 22 Nov 2016 02:11:26 +0000 (21:11 -0500)
commitee0b6597a9579342029e46bf2bc4a8dd887f7896
treec0e4a24b25f0a1018ebdfe46673fa17483f6fe84
parentc5a654786b5b68c5c215e3bd1bc83b02d7e2a0e9
swr: [rasterizer memory] minify texture width before alignment

The minification should happen before alignment, not after. See similar
logic on ComputeLODOffsetY. The current logic requires unnecessarily
large textures when there's an initial NPOT size.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/rasterizer/memory/TilingFunctions.h