Add driverApiVersion in GPUDeviceInfo

Bug: chromium:1340081
Change-Id: I9a1b190d3299b4f5e4603ac3e45869f385df0c48
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3913426
Auto-Submit: Peng Huang <penghuang@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
This commit is contained in:
Peng Huang 2022-09-22 10:04:42 -04:00 коммит произвёл Angle LUCI CQ
Родитель d2a58f00af
Коммит 9f99d59434
2 изменённых файлов: 6 добавлений и 4 удалений

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

@ -47,9 +47,10 @@ struct GPUDeviceInfo
std::string driverVersion;
std::string driverDate;
// Only available via GetSystemInfoVulkan currently.
// Fields only available via GetSystemInfoVulkan:
VersionInfo detailedDriverVersion;
DriverID driverId = 0;
DriverID driverId = 0;
uint32_t driverApiVersion = 0;
};
struct SystemInfo

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

@ -273,8 +273,9 @@ bool GetSystemInfoVulkanWithICD(SystemInfo *info, vk::ICD preferredICD)
default:
return false;
}
gpu.driverId = static_cast<DriverID>(driverProperties.driverID);
gpu.driverDate = "";
gpu.driverId = static_cast<DriverID>(driverProperties.driverID);
gpu.driverApiVersion = properties.apiVersion;
gpu.driverDate = "";
}
return true;