#include <algorithm>
#include "libANGLE/renderer/driver_utils.h"
#include "common/android_util.h"
#include "common/platform.h"
#include "common/system_utils.h"
#if defined(ANGLE_PLATFORM_LINUX)
# include <sys/utsname.h>
#endif
namespace rx
{
namespace
{
const uint16_t SandyBridge[] = …;
const uint16_t IvyBridge[] = …;
const uint16_t Haswell[] = …;
const uint16_t Broadwell[] = …;
const uint16_t CherryView[] = …;
const uint16_t Skylake[] = …;
const uint16_t Broxton[] = …;
const uint16_t GeminiLake[] = …;
const uint16_t KabyLake[] = …;
const uint16_t CoffeeLake[] = …;
const uint16_t MeteorLake[] = …;
const uint16_t IntelGen11[] = …;
const uint16_t IntelGen12[] = …;
angle::VersionTriple ParseGenericVulkanDriverVersion(uint32_t driverVersion)
{ … }
}
IntelDriverVersion::IntelDriverVersion(uint32_t buildNumber) : … { … }
IntelDriverVersion::IntelDriverVersion(uint32_t majorVersion, uint32_t minorVersion)
{ … }
bool IntelDriverVersion::operator==(const IntelDriverVersion &version) const
{ … }
bool IntelDriverVersion::operator!=(const IntelDriverVersion &version) const
{ … }
bool IntelDriverVersion::operator<(const IntelDriverVersion &version) const
{ … }
bool IntelDriverVersion::operator>=(const IntelDriverVersion &version) const
{ … }
bool IsSandyBridge(uint32_t DeviceId)
{ … }
bool IsIvyBridge(uint32_t DeviceId)
{ … }
bool IsHaswell(uint32_t DeviceId)
{ … }
bool IsBroadwell(uint32_t DeviceId)
{ … }
bool IsCherryView(uint32_t DeviceId)
{ … }
bool IsSkylake(uint32_t DeviceId)
{ … }
bool IsBroxton(uint32_t DeviceId)
{ … }
bool IsKabyLake(uint32_t DeviceId)
{ … }
bool IsGeminiLake(uint32_t DeviceId)
{ … }
bool IsCoffeeLake(uint32_t DeviceId)
{ … }
bool IsMeteorLake(uint32_t DeviceId)
{ … }
bool Is9thGenIntel(uint32_t DeviceId)
{ … }
bool Is11thGenIntel(uint32_t DeviceId)
{ … }
bool Is12thGenIntel(uint32_t DeviceId)
{ … }
std::string GetVendorString(uint32_t vendorId)
{ … }
IntelDriverVersion ParseIntelWindowsDriverVersion(uint32_t driverVersion)
{ … }
ARMDriverVersion ParseARMVulkanDriverVersion(uint32_t driverVersion)
{ … }
QualcommDriverVersion ParseQualcommVulkanDriverVersion(uint32_t driverVersion)
{ … }
int GetAndroidSDKVersion()
{ … }
#if !defined(ANGLE_PLATFORM_MACOS)
OSVersion GetMacOSVersion()
{ … }
#endif
#if !ANGLE_PLATFORM_IOS_FAMILY
OSVersion GetiOSVersion()
{ … }
#endif
#if defined(ANGLE_PLATFORM_LINUX)
bool ParseLinuxOSVersion(const char *version, int *major, int *minor, int *patch)
{ … }
#endif
OSVersion GetLinuxOSVersion()
{ … }
bool IsWayland()
{ … }
}