1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 10:24:12 +01:00

[dxbc] Disable atomic counter optimization on old RADV versions

Breaks TressFX in Tomb Raider 2013 for some reason, whereas this works
fine on 19.1 with both LLVM 8.0 and 9.0-git.
This commit is contained in:
Philip Rebohle 2019-06-15 12:56:29 +02:00
parent a715937db1
commit 58dcf77c08
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -49,6 +49,10 @@ namespace dxvk {
|| adapter->matchesDriver(DxvkGpuVendor::Nvidia, VK_DRIVER_ID_NVIDIA_PROPRIETARY_KHR, 0, 0))
useSubgroupOpsForEarlyDiscard = false;
// Disable atomic counters on older RADV versions
if (adapter->matchesDriver(DxvkGpuVendor::Amd, VK_DRIVER_ID_MESA_RADV_KHR, 0, VK_MAKE_VERSION(19, 1, 0)))
useSubgroupOpsForAtomicCounters = false;
// Apply shader-related options
applyTristate(useSubgroupOpsForEarlyDiscard, device->config().useEarlyDiscard);
}