mesa: implement mipmap generation for compressed 2D array textures