mesa: Add helper function _mesa_is_format_integer()