st/mesa: fix generating mipmaps for cube arrays