From 61049c33fb7dd54d38f99c9aae0b95953c7a509d Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 24 May 2018 10:48:06 +0200 Subject: [PATCH] [dxgi] Reduce reported VRAM on 32-bit platforms This is closer to what Windows does, and some applications may have trouble with more than 3GB VRAM. --- src/dxgi/dxgi_adapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dxgi/dxgi_adapter.cpp b/src/dxgi/dxgi_adapter.cpp index c88317bf3..8c43a2bf6 100644 --- a/src/dxgi/dxgi_adapter.cpp +++ b/src/dxgi/dxgi_adapter.cpp @@ -181,7 +181,7 @@ namespace dxvk { #ifndef _WIN64 // The value returned by DXGI is a 32-bit value // on 32-bit platforms, so we need to clamp it - VkDeviceSize maxMemory = 0xF0000000; + VkDeviceSize maxMemory = 0xC0000000; deviceMemory = std::min(deviceMemory, maxMemory); sharedMemory = std::min(sharedMemory, maxMemory); #endif