From dc52212873dddc38308c55b4f410cb86a3251b0f Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 30 Apr 2019 16:07:24 +0200 Subject: [PATCH] [dxbc] Disable Constant Buffer Range Check on AMD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The hardware already behaves as intended, no need to waste GPÜ cycles. --- src/dxbc/dxbc_options.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dxbc/dxbc_options.cpp b/src/dxbc/dxbc_options.cpp index 94aceb593..1189689e4 100644 --- a/src/dxbc/dxbc_options.cpp +++ b/src/dxbc/dxbc_options.cpp @@ -29,8 +29,10 @@ namespace dxvk { = adapter->matchesDriver(DxvkGpuVendor::Nvidia, VK_DRIVER_ID_NVIDIA_PROPRIETARY_KHR, 0, 0); strictDivision = options.strictDivision; - constantBufferRangeCheck = options.constantBufferRangeCheck; zeroInitWorkgroupMemory = options.zeroInitWorkgroupMemory; + + if (DxvkGpuVendor(devInfo.core.properties.vendorID) != DxvkGpuVendor::Amd) + constantBufferRangeCheck = options.constantBufferRangeCheck; // Disable early discard on RADV due to GPU hangs // Disable early discard on Nvidia because it may hurt performance