Skip to content

Commit

Permalink
[dxgi] Remove emulateUMA option
Browse files Browse the repository at this point in the history
The option was only used for GTA IV.
It broke and we have a better solution now.
  • Loading branch information
K0bin authored and doitsujin committed Aug 24, 2024
1 parent 9a280b0 commit eb8d188
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 16 deletions.
9 changes: 0 additions & 9 deletions dxvk.conf
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,6 @@
# 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.
# Setting this to 0 or less will have no effect.
#
Expand Down
2 changes: 1 addition & 1 deletion src/dxgi/dxgi_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ namespace dxvk {
// 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,
// 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);
deviceMemory = 512ull << 20;
}
Expand Down
3 changes: 0 additions & 3 deletions src/dxgi/dxgi_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ namespace dxvk {
this->customVendorId = parsePciId(config.getOption<std::string>("dxgi.customVendorId"));
this->customDeviceId = parsePciId(config.getOption<std::string>("dxgi.customDeviceId"));
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
this->maxDeviceMemory = VkDeviceSize(config.getOption<int32_t>("dxgi.maxDeviceMemory", 0)) << 20;
Expand Down
3 changes: 0 additions & 3 deletions src/dxgi/dxgi_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ namespace dxvk {
VkDeviceSize maxDeviceMemory;
VkDeviceSize maxSharedMemory;

/// Emulate UMA
bool emulateUMA;

/// Reports Nvidia GPUs running on the proprietary driver as a different
/// vendor (usually AMD). Proton will generally disable this option.
bool hideNvidiaGpu;
Expand Down

0 comments on commit eb8d188

Please sign in to comment.