mesa: Fix GL_LUMINANCE handling for textures in glGetTexImage