mesa: Fix format matching checks for GL_INTENSITY* internalformats.