mirror of
https://github.com/flightlessmango/MangoHud.git
synced 2024-10-31 15:20:13 +00:00
When pci_dev
is set, don't skip AMD gpu if device id doesn't match
This commit is contained in:
parent
e132bb9268
commit
05133ae3cd
@ -695,9 +695,9 @@ void init_gpu_stats(uint32_t& vendorID, uint32_t reported_deviceID, overlay_para
|
|||||||
if ((fp = fopen(device.c_str(), "r"))){
|
if ((fp = fopen(device.c_str(), "r"))){
|
||||||
uint32_t temp = 0;
|
uint32_t temp = 0;
|
||||||
if (fscanf(fp, "%x", &temp) == 1) {
|
if (fscanf(fp, "%x", &temp) == 1) {
|
||||||
if (reported_deviceID && temp != reported_deviceID){
|
if (!pci_bus_parsed && reported_deviceID && temp != reported_deviceID){
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
SPDLOG_DEBUG("DeviceID does not match vulkan report {}", reported_deviceID);
|
SPDLOG_DEBUG("DeviceID does not match vulkan report {:X}", reported_deviceID);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
deviceID = temp;
|
deviceID = temp;
|
||||||
|
Loading…
Reference in New Issue
Block a user