More work on mipmapping.

Signed-off-by: Quinn Hoener <quinn@seven2.com>