1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-29 17:52:18 +01:00

[dxbc] Remove old RADV/LLVM workaround for early discard

We have Demote now, and ACO is the default.
This commit is contained in:
Philip Rebohle 2021-05-27 00:40:07 +02:00
parent 94674ac45e
commit a1f3f6c971
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -43,12 +43,8 @@ namespace dxvk {
forceTgsmBarriers = options.forceTgsmBarriers;
dynamicIndexedConstantBufferAsSsbo = options.constantBufferRangeCheck;
// Disable early discard on RADV (with LLVM) due to GPU hangs
// Disable early discard on Nvidia because it may hurt performance
bool isRadvAco = std::string(devInfo.core.properties.deviceName).find("RADV/ACO") != std::string::npos;
if ((adapter->matchesDriver(DxvkGpuVendor::Amd, VK_DRIVER_ID_MESA_RADV_KHR, 0, 0) && !isRadvAco)
|| (adapter->matchesDriver(DxvkGpuVendor::Nvidia, VK_DRIVER_ID_NVIDIA_PROPRIETARY_KHR, 0, 0)))
if (adapter->matchesDriver(DxvkGpuVendor::Nvidia, VK_DRIVER_ID_NVIDIA_PROPRIETARY_KHR, 0, 0))
useSubgroupOpsForEarlyDiscard = false;
// Disable atomic counters on older RADV versions