From dba539471d0a64339975d5f7601babf6f05fddab Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 15 Jun 2021 08:32:47 +0200 Subject: [PATCH] [dxso] Remove old RADV/LLVM workaround for early discard This workaround has been removed for DXBC few weeks ago. Note that RADV/ACO is no longer a thing with latest Mesa git anyways. Signed-off-by: Samuel Pitoiset --- src/dxso/dxso_options.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/dxso/dxso_options.cpp b/src/dxso/dxso_options.cpp index ab472163..2866ace0 100644 --- a/src/dxso/dxso_options.cpp +++ b/src/dxso/dxso_options.cpp @@ -22,12 +22,8 @@ namespace dxvk { && (devInfo.coreSubgroup.supportedStages & VK_SHADER_STAGE_FRAGMENT_BIT) && (devInfo.coreSubgroup.supportedOperations & VK_SUBGROUP_FEATURE_BALLOT_BIT); - // 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; // Apply shader-related options