Browse Source

Fix msvc build

unified-memory-access
CamilleLaVey 4 weeks ago
parent
commit
32c76f1e0a
  1. 4
      src/video_core/vulkan_common/vulkan_device.cpp

4
src/video_core/vulkan_common/vulkan_device.cpp

@ -1683,8 +1683,8 @@ void Device::CollectPhysicalMemoryInfo() {
if (committed_backing != 0) { if (committed_backing != 0) {
LOG_INFO(Render_Vulkan, "Discounting {} MiB of guest memory committed by the host", LOG_INFO(Render_Vulkan, "Discounting {} MiB of guest memory committed by the host",
committed_backing >> 20); committed_backing >> 20);
local_memory -= std::min(local_memory, committed_backing);
device_access_memory -= std::min(device_access_memory, committed_backing);
local_memory -= (std::min)(local_memory, committed_backing);
device_access_memory -= (std::min)(device_access_memory, committed_backing);
} }
if (is_integrated) { if (is_integrated) {
const s64 available_memory = static_cast<s64>(device_access_memory - device_initial_usage); const s64 available_memory = static_cast<s64>(device_access_memory - device_initial_usage);

Loading…
Cancel
Save