mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
vk: GTX970 workaround
This commit is contained in:
parent
d35fecbeea
commit
8735a06f3c
1 changed files with 12 additions and 0 deletions
|
@ -678,9 +678,21 @@ namespace vk
|
|||
}
|
||||
|
||||
if (g_cfg.video.disable_vulkan_mem_allocator)
|
||||
{
|
||||
m_allocator = std::make_unique<vk::mem_allocator_vk>(dev, pdev);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_allocator = std::make_unique<vk::mem_allocator_vma>(dev, pdev);
|
||||
}
|
||||
|
||||
if (pgpu->props.deviceID == 0x13c2)
|
||||
{
|
||||
// GTX970 workaround/hack
|
||||
// The driver reports a full working 4GB of memory which is incorrect.
|
||||
// Limit to ~3GB to allow vma to avoid running over the headroom of 0.5G.
|
||||
memory_map.device_local_total_bytes = 3072 * 0x100000;
|
||||
}
|
||||
}
|
||||
|
||||
void render_device::destroy()
|
||||
|
|
Loading…
Add table
Reference in a new issue