When pci_dev is set, don't skip AMD gpu if device id doesn't match

This commit is contained in:
jackun 2022-07-17 20:25:59 +03:00
parent e132bb9268
commit 05133ae3cd
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

View File

@ -695,9 +695,9 @@ void init_gpu_stats(uint32_t& vendorID, uint32_t reported_deviceID, overlay_para
if ((fp = fopen(device.c_str(), "r"))){
uint32_t temp = 0;
if (fscanf(fp, "%x", &temp) == 1) {
if (reported_deviceID && temp != reported_deviceID){
if (!pci_bus_parsed && reported_deviceID && temp != reported_deviceID){
fclose(fp);
SPDLOG_DEBUG("DeviceID does not match vulkan report {}", reported_deviceID);
SPDLOG_DEBUG("DeviceID does not match vulkan report {:X}", reported_deviceID);
continue;
}
deviceID = temp;