diff options
author | Daniel Schürmann <[email protected]> | 2019-12-02 17:58:12 +0100 |
---|---|---|
committer | Daniel Schürmann <[email protected]> | 2019-12-07 11:23:11 +0100 |
commit | 0f9447ccb0445314e9e890772210e48352b4185c (patch) | |
tree | 40e48d495f7779ea40e451d630037c0f277ab9a3 /src/amd | |
parent | 746165e540c995deb421acdc9582ecd70f611535 (diff) |
radv: disable Youngblood app profile if ACO is used
Reviewed-by: Rhys Perry <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index e33f80aa5e4..431e64eeb6f 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -625,10 +625,11 @@ radv_handle_per_app_options(struct radv_instance *instance, if (LLVM_VERSION_MAJOR < 9) instance->debug_flags |= RADV_DEBUG_NO_LOAD_STORE_OPT; } else if (!strcmp(name, "Wolfenstein: Youngblood")) { - if (!(instance->debug_flags & RADV_DEBUG_NO_SHADER_BALLOT)) { + if (!(instance->debug_flags & RADV_DEBUG_NO_SHADER_BALLOT) && + !(instance->perftest_flags & RADV_PERFTEST_ACO)) { /* Force enable VK_AMD_shader_ballot because it looks * safe and it gives a nice boost (+20% on Vega 56 at - * this time). + * this time). It also prevents corruption on LLVM. */ instance->perftest_flags |= RADV_PERFTEST_SHADER_BALLOT; } |