mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[dxgi] Fix reported VRAM size for 32-bit builds
This commit is contained in:
parent
3e111086b2
commit
3c611503d6
@ -155,6 +155,14 @@ namespace dxvk {
|
||||
sharedMemory += heap.size;
|
||||
}
|
||||
|
||||
#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;
|
||||
deviceMemory = std::min(deviceMemory, maxMemory);
|
||||
sharedMemory = std::min(sharedMemory, maxMemory);
|
||||
#endif
|
||||
|
||||
pDesc->VendorId = deviceProp.vendorID;
|
||||
pDesc->DeviceId = deviceProp.deviceID;
|
||||
pDesc->SubSysId = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user