| Flutter Impeller |

driver_info_vk.cc
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "impeller/renderer/backend/vulkan/driver_info_vk.h"
6
7 #include <iomanip>
8 #include <sstream>
9 #include <string_view>
10 #include <unordered_map>
11
12 #include "flutter/fml/build_config.h"
13
14 namespace impeller {
15
16 namespace {
17 const std::unordered_map<std::string_view, AdrenoGPU> kAdrenoVersions = {
18 // X
19 // Note: I don't know if these strings actually match as there don't seem to
20 // be any android devices that use these GPUs.
21 {"X185", AdrenoGPU::kAdrenoX185},
22 {"X145", AdrenoGPU::kAdrenoX145},
23 // 700
24 {"750", AdrenoGPU::kAdreno750},
25 {"740", AdrenoGPU::kAdreno740},
26 {"735", AdrenoGPU::kAdreno735},
27 {"721", AdrenoGPU::kAdreno732},
28 {"730", AdrenoGPU::kAdreno730},
29 {"725", AdrenoGPU::kAdreno725},
30 {"720", AdrenoGPU::kAdreno720},
31 {"710", AdrenoGPU::kAdreno710},
32 {"702", AdrenoGPU::kAdreno702},
33
34 // 600
35 {"695", AdrenoGPU::kAdreno695},
36 {"690", AdrenoGPU::kAdreno690},
37 {"685", AdrenoGPU::kAdreno685},
38 {"680", AdrenoGPU::kAdreno680},
39 {"675", AdrenoGPU::kAdreno675},
40 {"663", AdrenoGPU::kAdreno663},
41 {"660", AdrenoGPU::kAdreno660},
42 {"650", AdrenoGPU::kAdreno650},
43 {"644", AdrenoGPU::kAdreno644},
44 {"643L", AdrenoGPU::kAdreno643L},
45 {"642", AdrenoGPU::kAdreno642},
46 {"642L", AdrenoGPU::kAdreno642L},
47 {"640", AdrenoGPU::kAdreno640},
48 {"630", AdrenoGPU::kAdreno630},
49 {"620", AdrenoGPU::kAdreno620},
50 {"619", AdrenoGPU::kAdreno619},
51 {"619L", AdrenoGPU::kAdreno619L},
52 {"618", AdrenoGPU::kAdreno618},
53 {"616", AdrenoGPU::kAdreno616},
54 {"615", AdrenoGPU::kAdreno615},
55 {"613", AdrenoGPU::kAdreno613},
56 {"612", AdrenoGPU::kAdreno612},
57 {"610", AdrenoGPU::kAdreno610},
58 {"608", AdrenoGPU::kAdreno608},
59 {"605", AdrenoGPU::kAdreno605},
60 // 500
61 {"540", AdrenoGPU::kAdreno540},
62 {"530", AdrenoGPU::kAdreno530},
63 {"512", AdrenoGPU::kAdreno512},
64 {"510", AdrenoGPU::kAdreno510},
65 {"509", AdrenoGPU::kAdreno509},
66 {"508", AdrenoGPU::kAdreno508},
67 {"506", AdrenoGPU::kAdreno506},
68 {"505", AdrenoGPU::kAdreno505},
69 {"504", AdrenoGPU::kAdreno504},
70 };
71
72 const std::unordered_map<std::string_view, MaliGPU> kMaliVersions = {
73 // 5th Gen.
74 {"G925", MaliGPU::kG925},
75 {"G725", MaliGPU::kG725},
76 {"G625", MaliGPU::kG625},
77 {"G720", MaliGPU::kG720},
78 {"G620", MaliGPU::kG620},
79
80 // Valhall
81 // Note: there is an Immortalis-G715 a Mali-G715
82 {"G715", MaliGPU::kG715},
83 {"G615", MaliGPU::kG615},
84 {"G710", MaliGPU::kG710},
85 {"G610", MaliGPU::kG610},
86 {"G510", MaliGPU::kG510},
87 {"G310", MaliGPU::kG310},
88 {"G78", MaliGPU::kG78},
89 {"G68", MaliGPU::kG68},
90 {"G77", MaliGPU::kG77},
91 {"G57", MaliGPU::kG57},
92
93 // Bifrost
94 {"G76", MaliGPU::kG76},
95 {"G72", MaliGPU::kG72},
96 {"G52", MaliGPU::kG52},
97 {"G71", MaliGPU::kG71},
98 {"G51", MaliGPU::kG51},
99 {"G31", MaliGPU::kG31},
100
101 // These might be Vulkan 1.0 Only.
102 {"T880", MaliGPU::kT880},
103 {"T860", MaliGPU::kT860},
104 {"T830", MaliGPU::kT830},
105 {"T820", MaliGPU::kT820},
106 {"T760", MaliGPU::kT760},
107 };
108
109 constexpr std::array<std::pair<std::string_view, PowerVRGPU>, 6> kGpuSeriesMap =
110 {{
111 {"BXE", PowerVRGPU::kBXE},
112 {"BXM", PowerVRGPU::kBXM},
113 {"BXS", PowerVRGPU::kBXS},
114 {"BXT", PowerVRGPU::kBXT},
115 {"CXT", PowerVRGPU::kCXT},
116 {"DXT", PowerVRGPU::kDXT},
117 }};
118 } // namespace
119
120 AdrenoGPU GetAdrenoVersion(std::string_view version) {
121 /// The format that Adreno names follow is "Adreno (TM) VERSION".
122 auto paren_pos = version.find("Adreno (TM) ");
123 if (paren_pos == std::string::npos) {
124 return AdrenoGPU::kUnknown;
125 }
126 auto version_string = version.substr(paren_pos + 12);
127 const auto& result = kAdrenoVersions.find(version_string);
128 if (result == kAdrenoVersions.end()) {
129 return AdrenoGPU::kUnknown;
130 }
131 return result->second;
132 }
133
134 PowerVRGPU GetPowerVRVersion(std::string_view version) {
135 for (const auto& entry : kGpuSeriesMap) {
136 if (version.find(entry.first) != std::string::npos) {
137 return entry.second;
138 }
139 }
140
141 return PowerVRGPU::kUnknown;
142 }
143
144 MaliGPU GetMaliVersion(std::string_view version) {
145 // These names are usually Mali-VERSION or Mali-Version-EXTRA_CRAP.
146 auto dash_pos = version.find("Mali-");
147 if (dash_pos == std::string::npos) {
148 return MaliGPU::kUnknown;
149 }
150 auto version_string_with_trailing = version.substr(dash_pos + 5);
151 // Remove any trailing crap if present.
152 auto more_dash_pos = version_string_with_trailing.find("-");
153 if (more_dash_pos != std::string::npos) {
154 version_string_with_trailing =
155 version_string_with_trailing.substr(0, more_dash_pos);
156 }
157
158 const auto& result = kMaliVersions.find(version_string_with_trailing);
159 if (result == kMaliVersions.end()) {
160 return MaliGPU::kUnknown;
161 }
162 return result->second;
163 }
164
165 constexpr VendorVK IdentifyVendor(uint32_t vendor) {
166 // Check if the vendor has a PCI ID:
167 // https://pcisig.com/membership/member-companies
168 switch (vendor) {
169 case 0x1AE0:
170 return VendorVK::kGoogle;
171 case 0x168C:
172 case 0x17CB:
173 case 0x1969:
174 case 0x5143:
175 return VendorVK::kQualcomm;
176 case 0x13B5:
177 return VendorVK::kARM;
178 case 0x1010:
179 return VendorVK::kImgTec;
180 case 0x1002:
181 case 0x1022:
182 return VendorVK::kAMD;
183 case 0x10DE:
184 return VendorVK::kNvidia;
185 case 0x8086: // :)
186 return VendorVK::kIntel;
187 case 0x106B:
188 return VendorVK::kApple;
189 case 0x19E5:
190 return VendorVK::kHuawei;
191 case 0x144D:
192 return VendorVK::kSamsung;
193 }
194 // Check if the ID is a known Khronos vendor.
195 switch (vendor) {
196 case VK_VENDOR_ID_MESA:
197 return VendorVK::kMesa;
198 // There are others but have never been observed. These can be added as
199 // needed.
200 }
201 return VendorVK::kUnknown;
202 }
203
204 constexpr const char* VendorToString(VendorVK vendor) {
205 switch (vendor) {
206 case VendorVK::kUnknown:
207 return "Unknown";
208 case VendorVK::kGoogle:
209 return "Google";
210 case VendorVK::kQualcomm:
211 return "Qualcomm";
212 case VendorVK::kARM:
213 return "ARM";
214 case VendorVK::kImgTec:
215 return "ImgTec PowerVR";
216 case VendorVK::kAMD:
217 return "AMD";
218 case VendorVK::kNvidia:
219 return "Nvidia";
220 case VendorVK::kIntel:
221 return "Intel";
222 case VendorVK::kMesa:
223 return "Mesa";
224 case VendorVK::kApple:
225 return "Apple";
226 case VendorVK::kHuawei:
227 return "Huawei";
228 case VendorVK::kSamsung:
229 return "Samsung";
230 }
231 FML_UNREACHABLE();
232 }
233
234 constexpr const char* DeviceTypeToString(DeviceTypeVK type) {
235 switch (type) {
236 case DeviceTypeVK::kUnknown:
237 return "Unknown";
238 case DeviceTypeVK::kIntegratedGPU:
239 return "Integrated GPU";
240 case DeviceTypeVK::kDiscreteGPU:
241 return "Discrete GPU";
242 case DeviceTypeVK::kVirtualGPU:
243 return "Virtual GPU";
244 case DeviceTypeVK::kCPU:
245 return "CPU";
246 }
247 FML_UNREACHABLE();
248 }
249
250 constexpr DeviceTypeVK ToDeviceType(const vk::PhysicalDeviceType& type) {
251 switch (type) {
252 case vk::PhysicalDeviceType::eOther:
253 return DeviceTypeVK::kUnknown;
254 case vk::PhysicalDeviceType::eIntegratedGpu:
255 return DeviceTypeVK::kIntegratedGPU;
256 case vk::PhysicalDeviceType::eDiscreteGpu:
257 return DeviceTypeVK::kDiscreteGPU;
258 case vk::PhysicalDeviceType::eVirtualGpu:
259 return DeviceTypeVK::kVirtualGPU;
260 case vk::PhysicalDeviceType::eCpu:
261 return DeviceTypeVK::kCPU;
262 break;
263 }
264 return DeviceTypeVK::kUnknown;
265 }
266
267 DriverInfoVK::DriverInfoVK(const vk::PhysicalDevice& device) {
268 auto props = device.getProperties();
269 api_version_ = Version{VK_API_VERSION_MAJOR(props.apiVersion),
270 VK_API_VERSION_MINOR(props.apiVersion),
271 VK_API_VERSION_PATCH(props.apiVersion)};
272 vendor_ = IdentifyVendor(props.vendorID);
273 if (vendor_ == VendorVK::kUnknown) {
274 FML_LOG(WARNING) << "Unknown GPU Driver Vendor: " << props.vendorID
275 << ". This is not an error.";
276 }
277 type_ = ToDeviceType(props.deviceType);
278 if (props.deviceName.data() != nullptr) {
279 driver_name_ = props.deviceName.data();
280 }
281
282 switch (vendor_) {
283 case VendorVK::kQualcomm:
284 adreno_gpu_ = GetAdrenoVersion(driver_name_);
285 break;
286 case VendorVK::kARM:
287 mali_gpu_ = GetMaliVersion(driver_name_);
288 break;
289 case VendorVK::kPowerVR:
290 powervr_gpu_ = GetPowerVRVersion(driver_name_);
291 break;
292 default:
293 break;
294 }
295 }
296
297 DriverInfoVK::~DriverInfoVK() = default;
298
299 const Version& DriverInfoVK::GetAPIVersion() const {
300 return api_version_;
301 }
302
303 const VendorVK& DriverInfoVK::GetVendor() const {
304 return vendor_;
305 }
306
307 const DeviceTypeVK& DriverInfoVK::GetDeviceType() const {
308 return type_;
309 }
310
311 const std::string& DriverInfoVK::GetDriverName() const {
312 return driver_name_;
313 }
314
315 void DriverInfoVK::DumpToLog() const {
316 std::vector<std::pair<std::string, std::string>> items;
317 items.emplace_back("Name", driver_name_);
318 items.emplace_back("API Version", api_version_.ToString());
319 items.emplace_back("Vendor", VendorToString(vendor_));
320 items.emplace_back("Device Type", DeviceTypeToString(type_));
321 items.emplace_back("Is Emulator", std::to_string(IsEmulator()));
322
323 size_t padding = 0;
324
325 for (const auto& item : items) {
326 padding = std::max(padding, item.first.size());
327 }
328
329 padding += 1;
330
331 std::stringstream stream;
332
333 stream << std::endl;
334
335 stream << "--- Driver Information ------------------------------------------";
336
337 stream << std::endl;
338
339 for (const auto& item : items) {
340 stream << "| " << std::setw(static_cast<int>(padding)) << item.first
341 << std::setw(0) << ": " << item.second << std::endl;
342 }
343
344 stream << "-----------------------------------------------------------------";
345
346 FML_LOG(IMPORTANT) << stream.str();
347 }
348
349 bool DriverInfoVK::IsEmulator() const {
350 #if FML_OS_ANDROID
351 // Google SwiftShader on Android.
352 if (type_ == DeviceTypeVK::kCPU && vendor_ == VendorVK::kGoogle &&
353 driver_name_.find("SwiftShader") != std::string::npos) {
354 return true;
355 }
356 #endif // FML_OS_ANDROID
357 return false;
358 }
359
360 bool DriverInfoVK::IsKnownBadDriver() const {
361 // Fall back to OpenGL ES on older Adreno devices that require additional
362 // workarounds in the Impeller Vulkan back end such as disabling framebuffer
363 // fetch.
364 //
365 // See the following issues:
366 // https://github.com/flutter/flutter/issues/178285
367 // https://github.com/flutter/flutter/issues/178498
368 if (adreno_gpu_ && *adreno_gpu_ <= AdrenoGPU::kAdreno650) {
369 return true;
370 }
371
372 // Disable Maleoon series GPUs, see:
373 // https://github.com/flutter/flutter/issues/156623
374 if (vendor_ == VendorVK::kHuawei) {
375 return true;
376 }
377
378 if (vendor_ == VendorVK::kSamsung) {
379 // The first version of the Xclipse series GPU has reported
380 // bugs, unfortunately all versions of this GPU report the
381 // same driver version. Instead we use the Vulkan version
382 // as a proxy, assuming that any newer devices would not
383 // lower the supported Vulkan API level.
384 // See
385 // https://vulkan.gpuinfo.org/listreports.php?devicename=samsung+SM-S906B&platform=android
386 // https://github.com/flutter/flutter/issues/161334
387 return !api_version_.IsAtLeast(Version{1, 3, 0});
388 }
389
390 // https://github.com/flutter/flutter/issues/161122
391 // https://github.com/flutter/flutter/issues/160960
392 // https://github.com/flutter/flutter/issues/160866
393 // https://github.com/flutter/flutter/issues/160804
394 // https://github.com/flutter/flutter/issues/160406
395 if (powervr_gpu_.has_value() && powervr_gpu_.value() < PowerVRGPU::kBXE) {
396 return true;
397 }
398 return false;
399 }
400
401 std::optional<MaliGPU> DriverInfoVK::GetMaliGPUInfo() const {
402 return mali_gpu_;
403 }
404
405 std::optional<AdrenoGPU> DriverInfoVK::GetAdrenoGPUInfo() const {
406 return adreno_gpu_;
407 }
408
409 std::optional<PowerVRGPU> DriverInfoVK::GetPowerVRGPUInfo() const {
410 return powervr_gpu_;
411 }
412
413 } // namespace impeller
type
GLenum type
Definition: blit_command_gles.cc:153
impeller::DriverInfoVK::GetVendor
const VendorVK & GetVendor() const
Get the vendor of the Vulkan implementation. This is a broad check and includes multiple drivers and ...
Definition: driver_info_vk.cc:303
impeller::DriverInfoVK::DriverInfoVK
DriverInfoVK(const vk::PhysicalDevice &device)
Definition: driver_info_vk.cc:267
impeller::DriverInfoVK::GetPowerVRGPUInfo
std::optional< PowerVRGPU > GetPowerVRGPUInfo() const
Returns PowerVR GPU info if this is a PowerVR GPU, otherwise std::nullopt.
Definition: driver_info_vk.cc:409
impeller::DriverInfoVK::IsKnownBadDriver
bool IsKnownBadDriver() const
Determines if the driver has been tested and determined to be non-functional.
Definition: driver_info_vk.cc:360
impeller::DriverInfoVK::~DriverInfoVK
~DriverInfoVK()
impeller::DriverInfoVK::GetDriverName
const std::string & GetDriverName() const
Get the self-reported name of the graphics driver.
Definition: driver_info_vk.cc:311
impeller::DriverInfoVK::GetAdrenoGPUInfo
std::optional< AdrenoGPU > GetAdrenoGPUInfo() const
Returns Adreno GPU info if this is a Adreno GPU, otherwise std::nullopt.
Definition: driver_info_vk.cc:405
impeller::DriverInfoVK::DumpToLog
void DumpToLog() const
Dumps the current driver info to the log.
Definition: driver_info_vk.cc:315
impeller::DriverInfoVK::GetMaliGPUInfo
std::optional< MaliGPU > GetMaliGPUInfo() const
Returns Mali GPU info if this is a Mali GPU, otherwise std::nullopt.
Definition: driver_info_vk.cc:401
impeller::DriverInfoVK::IsEmulator
bool IsEmulator() const
Determines if the driver represents an emulator. There is no definitive way to tell if a driver is an...
Definition: driver_info_vk.cc:349
impeller::DriverInfoVK::GetDeviceType
const DeviceTypeVK & GetDeviceType() const
Get the device type. Typical use might be to check if the device is a CPU implementation.
Definition: driver_info_vk.cc:307
impeller::DriverInfoVK::GetAPIVersion
const Version & GetAPIVersion() const
Gets the Vulkan API version. Should be at or above Vulkan 1.1 which is the Impeller baseline.
Definition: driver_info_vk.cc:299
driver_info_vk.h
padding
Vector2 padding
The halo padding in source space.
Definition: gaussian_blur_filter_contents.cc:87
impeller
Definition: allocation.cc:12
impeller::MaliGPU
MaliGPU
Definition: driver_info_vk.h:73
impeller::MaliGPU::kG310
@ kG310
impeller::MaliGPU::kG77
@ kG77
impeller::MaliGPU::kG620
@ kG620
impeller::MaliGPU::kUnknown
@ kUnknown
impeller::MaliGPU::kT820
@ kT820
impeller::MaliGPU::kG51
@ kG51
impeller::MaliGPU::kG720
@ kG720
impeller::MaliGPU::kG725
@ kG725
impeller::MaliGPU::kG610
@ kG610
impeller::MaliGPU::kG68
@ kG68
impeller::MaliGPU::kG715
@ kG715
impeller::MaliGPU::kT830
@ kT830
impeller::MaliGPU::kG57
@ kG57
impeller::MaliGPU::kG625
@ kG625
impeller::MaliGPU::kT880
@ kT880
impeller::MaliGPU::kT860
@ kT860
impeller::MaliGPU::kG615
@ kG615
impeller::MaliGPU::kG78
@ kG78
impeller::MaliGPU::kG52
@ kG52
impeller::MaliGPU::kG925
@ kG925
impeller::MaliGPU::kG72
@ kG72
impeller::MaliGPU::kG510
@ kG510
impeller::MaliGPU::kG76
@ kG76
impeller::MaliGPU::kT760
@ kT760
impeller::MaliGPU::kG71
@ kG71
impeller::MaliGPU::kG710
@ kG710
impeller::MaliGPU::kG31
@ kG31
impeller::VendorVK
VendorVK
Definition: driver_info_vk.h:131
impeller::VendorVK::kUnknown
@ kUnknown
impeller::VendorVK::kImgTec
@ kImgTec
impeller::VendorVK::kIntel
@ kIntel
impeller::VendorVK::kSamsung
@ kSamsung
impeller::VendorVK::kGoogle
@ kGoogle
impeller::VendorVK::kPowerVR
@ kPowerVR
impeller::VendorVK::kHuawei
@ kHuawei
impeller::VendorVK::kApple
@ kApple
impeller::VendorVK::kQualcomm
@ kQualcomm
impeller::VendorVK::kNvidia
@ kNvidia
impeller::VendorVK::kMesa
@ kMesa
impeller::VendorVK::kARM
@ kARM
impeller::VendorVK::kAMD
@ kAMD
impeller::AdrenoGPU
AdrenoGPU
Definition: driver_info_vk.h:14
impeller::AdrenoGPU::kAdrenoX145
@ kAdrenoX145
impeller::AdrenoGPU::kAdreno618
@ kAdreno618
impeller::AdrenoGPU::kAdreno690
@ kAdreno690
impeller::AdrenoGPU::kAdreno630
@ kAdreno630
impeller::AdrenoGPU::kAdreno642
@ kAdreno642
impeller::AdrenoGPU::kAdreno730
@ kAdreno730
impeller::AdrenoGPU::kAdreno509
@ kAdreno509
impeller::AdrenoGPU::kAdreno642L
@ kAdreno642L
impeller::AdrenoGPU::kAdreno750
@ kAdreno750
impeller::AdrenoGPU::kUnknown
@ kUnknown
impeller::AdrenoGPU::kAdreno615
@ kAdreno615
impeller::AdrenoGPU::kAdreno510
@ kAdreno510
impeller::AdrenoGPU::kAdreno610
@ kAdreno610
impeller::AdrenoGPU::kAdreno680
@ kAdreno680
impeller::AdrenoGPU::kAdreno695
@ kAdreno695
impeller::AdrenoGPU::kAdreno725
@ kAdreno725
impeller::AdrenoGPU::kAdreno740
@ kAdreno740
impeller::AdrenoGPU::kAdreno720
@ kAdreno720
impeller::AdrenoGPU::kAdreno685
@ kAdreno685
impeller::AdrenoGPU::kAdreno613
@ kAdreno613
impeller::AdrenoGPU::kAdrenoX185
@ kAdrenoX185
impeller::AdrenoGPU::kAdreno506
@ kAdreno506
impeller::AdrenoGPU::kAdreno505
@ kAdreno505
impeller::AdrenoGPU::kAdreno702
@ kAdreno702
impeller::AdrenoGPU::kAdreno605
@ kAdreno605
impeller::AdrenoGPU::kAdreno619L
@ kAdreno619L
impeller::AdrenoGPU::kAdreno732
@ kAdreno732
impeller::AdrenoGPU::kAdreno650
@ kAdreno650
impeller::AdrenoGPU::kAdreno643L
@ kAdreno643L
impeller::AdrenoGPU::kAdreno540
@ kAdreno540
impeller::AdrenoGPU::kAdreno620
@ kAdreno620
impeller::AdrenoGPU::kAdreno530
@ kAdreno530
impeller::AdrenoGPU::kAdreno619
@ kAdreno619
impeller::AdrenoGPU::kAdreno735
@ kAdreno735
impeller::AdrenoGPU::kAdreno612
@ kAdreno612
impeller::AdrenoGPU::kAdreno710
@ kAdreno710
impeller::AdrenoGPU::kAdreno640
@ kAdreno640
impeller::AdrenoGPU::kAdreno663
@ kAdreno663
impeller::AdrenoGPU::kAdreno508
@ kAdreno508
impeller::AdrenoGPU::kAdreno675
@ kAdreno675
impeller::AdrenoGPU::kAdreno608
@ kAdreno608
impeller::AdrenoGPU::kAdreno644
@ kAdreno644
impeller::AdrenoGPU::kAdreno616
@ kAdreno616
impeller::AdrenoGPU::kAdreno660
@ kAdreno660
impeller::AdrenoGPU::kAdreno504
@ kAdreno504
impeller::AdrenoGPU::kAdreno512
@ kAdreno512
impeller::IdentifyVendor
constexpr VendorVK IdentifyVendor(uint32_t vendor)
Definition: driver_info_vk.cc:165
impeller::PowerVRGPU
PowerVRGPU
Definition: driver_info_vk.h:114
impeller::PowerVRGPU::kUnknown
@ kUnknown
impeller::PowerVRGPU::kCXT
@ kCXT
impeller::PowerVRGPU::kBXS
@ kBXS
impeller::PowerVRGPU::kBXT
@ kBXT
impeller::PowerVRGPU::kBXE
@ kBXE
impeller::PowerVRGPU::kDXT
@ kDXT
impeller::PowerVRGPU::kBXM
@ kBXM
impeller::GetMaliVersion
MaliGPU GetMaliVersion(std::string_view version)
Definition: driver_info_vk.cc:144
impeller::GetAdrenoVersion
AdrenoGPU GetAdrenoVersion(std::string_view version)
Definition: driver_info_vk.cc:120
impeller::VendorToString
constexpr const char * VendorToString(VendorVK vendor)
Definition: driver_info_vk.cc:204
impeller::DeviceTypeVK
DeviceTypeVK
Definition: driver_info_vk.h:156
impeller::DeviceTypeVK::kVirtualGPU
@ kVirtualGPU
impeller::DeviceTypeVK::kUnknown
@ kUnknown
impeller::DeviceTypeVK::kCPU
@ kCPU
impeller::DeviceTypeVK::kIntegratedGPU
@ kIntegratedGPU
impeller::DeviceTypeVK::kDiscreteGPU
@ kDiscreteGPU
impeller::DeviceTypeToString
constexpr const char * DeviceTypeToString(DeviceTypeVK type)
Definition: driver_info_vk.cc:234
impeller::GetPowerVRVersion
PowerVRGPU GetPowerVRVersion(std::string_view version)
Definition: driver_info_vk.cc:134
impeller::ToDeviceType
constexpr DeviceTypeVK ToDeviceType(const vk::PhysicalDeviceType &type)
Definition: driver_info_vk.cc:250
impeller::Version
Definition: version.h:16
impeller::Version::IsAtLeast
constexpr bool IsAtLeast(const Version &other) const
Definition: version.h:31
impeller::Version::ToString
std::string ToString() const
Definition: version.cc:27