mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[dxgi] Remove emulateUMA option
The option was only used for GTA IV. It broke and we have a better solution now.
This commit is contained in:
parent
9a280b063a
commit
eb8d1885bd
4 changed files with 1 additions and 16 deletions
|
@ -118,15 +118,6 @@
|
||||||
# dxgi.maxSharedMemory = 0
|
# dxgi.maxSharedMemory = 0
|
||||||
|
|
||||||
|
|
||||||
# Some games think we are on Intel given a lack of NVAPI or
|
|
||||||
# AGS/atiadlxx support. Report our device memory as shared memory,
|
|
||||||
# and some small amount for a "carveout".
|
|
||||||
|
|
||||||
# Supported values: True, False
|
|
||||||
|
|
||||||
# dxgi.emulateUMA = False
|
|
||||||
|
|
||||||
|
|
||||||
# Override back buffer count for the Vulkan swap chain.
|
# Override back buffer count for the Vulkan swap chain.
|
||||||
# Setting this to 0 or less will have no effect.
|
# Setting this to 0 or less will have no effect.
|
||||||
#
|
#
|
||||||
|
|
|
@ -353,7 +353,7 @@ namespace dxvk {
|
||||||
// which can be an integrated GPU on some systems. Report available memory as shared
|
// which can be an integrated GPU on some systems. Report available memory as shared
|
||||||
// memory and a small amount as dedicated carve-out if a dedicated GPU is present,
|
// memory and a small amount as dedicated carve-out if a dedicated GPU is present,
|
||||||
// otherwise report memory normally to not unnecessarily confuse games on Deck.
|
// otherwise report memory normally to not unnecessarily confuse games on Deck.
|
||||||
if ((m_adapter->isLinkedToDGPU() && deviceProp.deviceType == VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU) || options->emulateUMA) {
|
if ((m_adapter->isLinkedToDGPU() && deviceProp.deviceType == VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU)) {
|
||||||
sharedMemory = std::max(sharedMemory, deviceMemory);
|
sharedMemory = std::max(sharedMemory, deviceMemory);
|
||||||
deviceMemory = 512ull << 20;
|
deviceMemory = 512ull << 20;
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,9 +85,6 @@ namespace dxvk {
|
||||||
this->customVendorId = parsePciId(config.getOption<std::string>("dxgi.customVendorId"));
|
this->customVendorId = parsePciId(config.getOption<std::string>("dxgi.customVendorId"));
|
||||||
this->customDeviceId = parsePciId(config.getOption<std::string>("dxgi.customDeviceId"));
|
this->customDeviceId = parsePciId(config.getOption<std::string>("dxgi.customDeviceId"));
|
||||||
this->customDeviceDesc = config.getOption<std::string>("dxgi.customDeviceDesc", "");
|
this->customDeviceDesc = config.getOption<std::string>("dxgi.customDeviceDesc", "");
|
||||||
|
|
||||||
// Emulate a UMA device
|
|
||||||
this->emulateUMA = config.getOption<bool>("dxgi.emulateUMA", false);
|
|
||||||
|
|
||||||
// Interpret the memory limits as Megabytes
|
// Interpret the memory limits as Megabytes
|
||||||
this->maxDeviceMemory = VkDeviceSize(config.getOption<int32_t>("dxgi.maxDeviceMemory", 0)) << 20;
|
this->maxDeviceMemory = VkDeviceSize(config.getOption<int32_t>("dxgi.maxDeviceMemory", 0)) << 20;
|
||||||
|
|
|
@ -30,9 +30,6 @@ namespace dxvk {
|
||||||
VkDeviceSize maxDeviceMemory;
|
VkDeviceSize maxDeviceMemory;
|
||||||
VkDeviceSize maxSharedMemory;
|
VkDeviceSize maxSharedMemory;
|
||||||
|
|
||||||
/// Emulate UMA
|
|
||||||
bool emulateUMA;
|
|
||||||
|
|
||||||
/// Reports Nvidia GPUs running on the proprietary driver as a different
|
/// Reports Nvidia GPUs running on the proprietary driver as a different
|
||||||
/// vendor (usually AMD). Proton will generally disable this option.
|
/// vendor (usually AMD). Proton will generally disable this option.
|
||||||
bool hideNvidiaGpu;
|
bool hideNvidiaGpu;
|
||||||
|
|
Loading…
Add table
Reference in a new issue