fb: make mip_cube test cope with npot textures

Make testcase suitable for testing with npot textures.
Also add support for RGB565 texture format.
driver: fix mipmap size compotation for npot

GL uses a round-down convention.