mesa/main: not fill mesa_error on _mesa_legal_texture_base_format_for_target