mesa: handle array textures in GenerateMipmap(), FramebufferTexture1/2D()