Update PrintSystemInfo with missing fields.

SystemInfo's PrintSystemInfo was out of date and missing some newer
fields.

Bug: angleproject:6888
Change-Id: Ia73065d60ec3fab6affe21b81398ffb2fe587e9b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3379709
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Commit-Queue: Jonah Ryan-Davis <jonahr@google.com>
This commit is contained in:
Jonah Ryan-Davis 2022-01-11 15:17:10 -05:00 коммит произвёл Angle LUCI CQ
Родитель 6601b8d2e9
Коммит 0aae0d7ad5
1 изменённых файлов: 18 добавлений и 1 удалений

Просмотреть файл

@ -298,7 +298,9 @@ void PrintSystemInfo(const SystemInfo &info)
const auto &gpu = info.gpus[i];
std::cout << " " << i << " - " << VendorName(gpu.vendorId) << " device id: 0x" << std::hex
<< std::uppercase << gpu.deviceId << std::dec << "\n";
<< std::uppercase << gpu.deviceId << std::dec << ", revision id: 0x" << std::hex
<< std::uppercase << gpu.revisionId << std::dec << ", system device id: 0x"
<< std::hex << std::uppercase << gpu.systemDeviceId << std::dec << "\n";
if (!gpu.driverVendor.empty())
{
std::cout << " Driver Vendor: " << gpu.driverVendor << "\n";
@ -311,6 +313,15 @@ void PrintSystemInfo(const SystemInfo &info)
{
std::cout << " Driver Date: " << gpu.driverDate << "\n";
}
if (gpu.detailedDriverVersion.major != 0 || gpu.detailedDriverVersion.minor != 0 ||
gpu.detailedDriverVersion.subMinor != 0 || gpu.detailedDriverVersion.patch != 0)
{
std::cout << " Detailed Driver Version:\n"
<< " major: " << gpu.detailedDriverVersion.major
<< " minor: " << gpu.detailedDriverVersion.minor
<< " subMinor: " << gpu.detailedDriverVersion.subMinor
<< " patch: " << gpu.detailedDriverVersion.patch << "\n";
}
}
std::cout << "\n";
@ -319,12 +330,18 @@ void PrintSystemInfo(const SystemInfo &info)
std::cout << "\n";
std::cout << "Optimus: " << (info.isOptimus ? "true" : "false") << "\n";
std::cout << "AMD Switchable: " << (info.isAMDSwitchable ? "true" : "false") << "\n";
std::cout << "Mac Switchable: " << (info.isMacSwitchable ? "true" : "false") << "\n";
std::cout << "Needs EAGL on Mac: " << (info.needsEAGLOnMac ? "true" : "false") << "\n";
std::cout << "\n";
if (!info.machineManufacturer.empty())
{
std::cout << "Machine Manufacturer: " << info.machineManufacturer << "\n";
}
if (info.androidSdkLevel != 0)
{
std::cout << "Android SDK Level: " << info.androidSdkLevel << "\n";
}
if (!info.machineModelName.empty())
{
std::cout << "Machine Model: " << info.machineModelName << "\n";