Don't reinit stuff when re-creating swapchain
Partial revert of
@@ -1547,11 +1547,8 @@ static VkResult overlay_CreateSwapchainKHR(
std::string deviceName = prop.deviceName;
if (!is_blacklisted()) {
#ifdef __gnu_linux__
- parse_pciids();
get_device_name(prop.vendorID, prop.deviceID, swapchain_data->sw_stats);
- init_system_info();
#endif
- init_gpu_stats(device_data->properties.vendorID, device_data->instance->params);
}
if(driverProps.driverID == VK_DRIVER_ID_NVIDIA_PROPRIETARY){
swapchain_data->sw_stats.driverName = "NVIDIA";
@@ -1849,6 +1846,7 @@ static VkResult overlay_CreateDevice(
if (!is_blacklisted()) {
device_map_queues(device_data, pCreateInfo);
+ init_gpu_stats(device_data->properties.vendorID, device_data->instance->params);
}
return result;
@@ -1940,6 +1938,8 @@ static VkResult overlay_CreateInstance(
if (!is_blacklisted()) {
#ifdef __gnu_linux__
+ parse_pciids();
+ init_system_info();
instance_data->notifier.params = &instance_data->params;
start_notifier(instance_data->notifier);
#endif
