Path: blob/main_old/src/gpu_info_util/SystemInfo_internal.h
1693 views
//1// Copyright 2013 The ANGLE Project Authors. All rights reserved.2// Use of this source code is governed by a BSD-style license that can be3// found in the LICENSE file.4//56// SystemInfo_internal.h: Functions used by the SystemInfo_* files and unittests78#ifndef GPU_INFO_UTIL_SYSTEM_INFO_INTERNAL_H_9#define GPU_INFO_UTIL_SYSTEM_INFO_INTERNAL_H_1011#include "gpu_info_util/SystemInfo.h"1213namespace angle14{1516// Defined in SystemInfo_libpci when GPU_INFO_USE_LIBPCI is defined.17bool GetPCIDevicesWithLibPCI(std::vector<GPUDeviceInfo> *devices);18// Defined in SystemInfo_x11 when GPU_INFO_USE_X11 is defined.19bool GetNvidiaDriverVersionWithXNVCtrl(std::string *version);2021// Target specific helper functions that can be compiled on all targets22// Live in SystemInfo.cpp23bool ParseAMDBrahmaDriverVersion(const std::string &content, std::string *version);24bool ParseAMDCatalystDriverVersion(const std::string &content, std::string *version);25bool ParseMacMachineModel(const std::string &identifier,26std::string *type,27int32_t *major,28int32_t *minor);29bool CMDeviceIDToDeviceAndVendorID(const std::string &id, uint32_t *vendorId, uint32_t *deviceId);3031#if defined(ANGLE_PLATFORM_MACOS) || defined(ANGLE_PLATFORM_MACCATALYST)32bool GetSystemInfo_mac(SystemInfo *info);33#endif3435#if defined(ANGLE_PLATFORM_IOS) || (defined(ANGLE_PLATFORM_MACCATALYST) && defined(ANGLE_CPU_ARM64))36bool GetSystemInfo_ios(SystemInfo *info);37#endif3839} // namespace angle4041#endif // GPU_INFO_UTIL_SYSTEM_INFO_INTERNAL_H_424344