mesa: Handle integer formats in need_rgb_to_luminance_conversion()