1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[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.
This commit is contained in:
Philip Rebohle 2018-05-24 10:48:06 +02:00
parent 38c5e57025
commit 61049c33fb
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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