swr: [rasterizer memory] minify original sizes for block formats
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 12 Nov 2016 08:01:15 +0000 (03:01 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 22 Nov 2016 02:11:26 +0000 (21:11 -0500)
commitc5a654786b5b68c5c215e3bd1bc83b02d7e2a0e9
tree9d090444fff59a18cb10ace02c6bdec1d3b93ad2
parentbf75ef3f9201e11bb08a4d03dab20d5ff86f1ebc
swr: [rasterizer memory] minify original sizes for block formats

There's no guarantee that mip width/height will be a multiple of the
compressed block size. Doing a divide by the block size first yields
different results than GL expects, so we do the divide at the end.

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