From 05133ae3cd05285c4cf373896dd0ce2a6e4e4169 Mon Sep 17 00:00:00 2001 From: jackun Date: Sun, 17 Jul 2022 20:25:59 +0300 Subject: [PATCH] When `pci_dev` is set, don't skip AMD gpu if device id doesn't match --- src/overlay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/overlay.cpp b/src/overlay.cpp index cf3f279..2825071 100644 --- a/src/overlay.cpp +++ b/src/overlay.cpp @@ -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;