From a1f3f6c971027269648b2b6a82c276ad261f399b Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 27 May 2021 00:40:07 +0200 Subject: [PATCH] [dxbc] Remove old RADV/LLVM workaround for early discard We have Demote now, and ACO is the default. --- src/dxbc/dxbc_options.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/dxbc/dxbc_options.cpp b/src/dxbc/dxbc_options.cpp index 83d85f37f..6960515ed 100644 --- a/src/dxbc/dxbc_options.cpp +++ b/src/dxbc/dxbc_options.cpp @@ -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