#include "GPUTestConfig.h"
#include <stdint.h>
#include <iostream>
#include "common/angleutils.h"
#include "common/debug.h"
#include "common/platform_helpers.h"
#include "common/string_utils.h"
#include "gpu_info_util/SystemInfo.h"
#if defined(ANGLE_PLATFORM_APPLE)
# include "GPUTestConfig_mac.h"
#endif
namespace angle
{
namespace
{
#if defined(ANGLE_PLATFORM_MACOS)
inline bool OperatingSystemVersionNumbers(int32_t *majorVersion, int32_t *minorVersion)
{
static int32_t sSavedMajorVersion = -1;
static int32_t sSavedMinorVersion = -1;
bool ret = false;
if (sSavedMajorVersion == -1 || sSavedMinorVersion == -1)
{
GetOperatingSystemVersionNumbers(&sSavedMajorVersion, &sSavedMinorVersion);
*majorVersion = sSavedMajorVersion;
*minorVersion = sSavedMinorVersion;
ret = true;
}
else
{
ret = true;
}
*majorVersion = sSavedMajorVersion;
*minorVersion = sSavedMinorVersion;
return ret;
}
#endif
inline bool IsMacVersion(const int32_t majorVersion, const int32_t minorVersion)
{ … }
inline bool IsMacLeopard()
{ … }
inline bool IsMacSnowLeopard()
{ … }
inline bool IsMacLion()
{ … }
inline bool IsMacMountainLion()
{ … }
inline bool IsMacMavericks()
{ … }
inline bool IsMacYosemite()
{ … }
inline bool IsMacElCapitan()
{ … }
inline bool IsMacSierra()
{ … }
inline bool IsMacHighSierra()
{ … }
inline bool IsMacMojave()
{ … }
inline bool GetGPUTestSystemInfo(SystemInfo **sysInfo)
{ … }
inline bool GetActiveGPU(GPUDeviceInfo **devInfo)
{ … }
inline VendorID GetActiveGPUVendorID()
{ … }
inline DeviceID GetActiveGPUDeviceID()
{ … }
inline bool IsNVIDIA()
{ … }
inline bool IsAMD()
{ … }
inline bool IsIntel()
{ … }
inline bool IsVMWare()
{ … }
inline bool IsAppleGPU()
{ … }
inline bool IsDebug()
{ … }
inline bool IsRelease()
{ … }
inline bool IsAndroidDevice(const std::string &deviceName)
{ … }
inline bool IsNexus5X()
{ … }
inline bool IsPixel2()
{ … }
inline bool IsPixel2XL()
{ … }
inline bool IsPixel4()
{ … }
inline bool IsPixel4XL()
{ … }
inline bool IsPixel6()
{ … }
inline bool IsPixel7()
{ … }
inline bool IsOppoFlipN2()
{ … }
inline bool IsMaliG710()
{ … }
inline bool IsGalaxyA23()
{ … }
inline bool IsGalaxyA34()
{ … }
inline bool IsGalaxyA54()
{ … }
inline bool IsGalaxyS22()
{ … }
inline bool IsGalaxyS23()
{ … }
inline bool IsGalaxyS24()
{ … }
inline bool IsGalaxyQualcomm()
{ … }
inline bool IsFindX6()
{ … }
inline bool IsPineapple()
{ … }
inline bool IsDeviceIdGPU(const std::string &gpuDeviceId)
{ … }
inline bool IsNVIDIAQuadroP400()
{ … }
inline bool IsNVIDIAGTX1660()
{ … }
inline bool IsD3D9(const GPUTestConfig::API &api)
{ … }
inline bool IsD3D11(const GPUTestConfig::API &api)
{ … }
inline bool IsGLDesktop(const GPUTestConfig::API &api)
{ … }
inline bool IsGLES(const GPUTestConfig::API &api)
{ … }
inline bool IsVulkan(const GPUTestConfig::API &api)
{ … }
inline bool IsSwiftShader(const GPUTestConfig::API &api)
{ … }
inline bool IsMetal(const GPUTestConfig::API &api)
{ … }
inline bool IsWgpu(const GPUTestConfig::API &api)
{ … }
}
GPUTestConfig::GPUTestConfig() : … { … }
GPUTestConfig::GPUTestConfig(bool isSwiftShader)
{ … }
GPUTestConfig::GPUTestConfig(const API &api, uint32_t preRotation)
: … { … }
const GPUTestConfig::ConditionArray &GPUTestConfig::getConditions() const
{ … }
}