Mipmap fixes.

GIF fallback.
Early outs on tiling loops.

Change-Id: I97066e5894a5813032133942125d879fadd80696