From d9931e362150ca3435a3f3382324144dbfcb9a9f Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Mon, 18 Feb 2019 18:02:39 +0100 Subject: [PATCH] [utils] Report Nvidia GPUs for Far Cry 3 and Far Cry 4 Both games make assumptions about the exact clear value for UNORM render targets, which is incorrect on most Vulkan drivers. --- src/util/config/config.cpp | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/src/util/config/config.cpp b/src/util/config/config.cpp index 0cc350c4..834fc557 100644 --- a/src/util/config/config.cpp +++ b/src/util/config/config.cpp @@ -37,10 +37,28 @@ namespace dxvk { { "EvilWithinDemo.exe", {{ { "d3d11.dcSingleUseMode", "False" }, }} }, - /* Far Cry 5 */ + /* Far Cry 3: Assumes clear(0.5) on an UNORM * + * format to result in 128 on AMD and 127 on * + * Nvidia. Most Vulkan drivers clear to 127, * + * assuming higher values causes artifacts. */ + { "farcry3_d3d11.exe", {{ + { "dxgi.customVendorId", "10de" }, + }} }, + { "fc3_blooddragon_d3d11.exe", {{ + { "dxgi.customVendorId", "10de" }, + }} }, + /* Far Cry 4: Same as Far Cry 3 */ + { "FarCry4.exe", {{ + { "dxgi.customVendorId", "10de" }, + }} }, + /* Far Cry 5: Avoid CPU <-> GPU sync */ { "FarCry5.exe", {{ { "d3d11.allowMapFlagNoWait", "True" } }} }, + /* Far Cry Primal: Nvidia performance */ + { "FCPrimal.exe", {{ + { "dxgi.nvapiHack", "False" }, + } }}, /* Frostpunk: Renders one frame with D3D9 * * after creating the DXGI swap chain */ { "Frostpunk.exe", {{ @@ -88,14 +106,6 @@ namespace dxvk { { "MassEffectAndromeda.exe", {{ { "dxgi.nvapiHack", "False" }, }} }, - /* Far Cry 4 */ - { "FarCry4.exe", {{ - { "dxgi.nvapiHack", "False" }, - }} }, - /* Far Cry Primal */ - { "FCPrimal.exe", {{ - { "dxgi.nvapiHack", "False" }, - }} }, }};