[dxvk] Disable NVIDIA HVV bug workaround on fixed drivers

Reviewed-by: Arthur Huillet <ahuillet@nvidia.com>
This commit is contained in:
Liam Middlebrook 2021-03-03 00:54:35 -08:00 committed by Philip Rebohle
parent b25d6ba615
commit 1c2edabbcb
1 changed files with 10 additions and 1 deletions

View File

@ -180,7 +180,16 @@ namespace dxvk {
/* Work around an issue on Nvidia drivers where using the entire
* device_local | host_visible heap can cause crashes, presumably
* due to subsequent internal driver allocations failing */
bool nvidiaBug3114283Active = true;
bool nvidiaBug3114283Active = false;
// Fix is available in mainline drivers starting with the 465 driver series.
if (device->adapter()->matchesDriver(DxvkGpuVendor::Nvidia,
VK_DRIVER_ID_NVIDIA_PROPRIETARY_KHR,
0,
VK_MAKE_VERSION(465, 0, 0))) {
nvidiaBug3114283Active = true;
}
applyTristate(nvidiaBug3114283Active, device->config().halveNvidiaHVVHeap);
if ((m_device->properties().core.properties.vendorID == uint16_t(DxvkGpuVendor::Nvidia))