Skip to content

Commit

Permalink
[dxbc] Disable early discard on AMD cards
Browse files Browse the repository at this point in the history
Causes GPU hangs.
  • Loading branch information
doitsujin committed Nov 24, 2018
1 parent ce3642e commit 2424cf0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dxbc/dxbc_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ namespace dxvk {

zeroInitWorkgroupMemory = options.zeroInitWorkgroupMemory;

// Disable early discard on AMD due to GPU hangs
// Disable early discard on Nvidia because it may hurt performance
if (DxvkGpuVendor(devInfo.core.properties.vendorID) == DxvkGpuVendor::Nvidia) {
auto vendor = DxvkGpuVendor(devInfo.core.properties.vendorID);

if (vendor == DxvkGpuVendor::Amd
|| vendor == DxvkGpuVendor::Nvidia) {
useSubgroupOpsForEarlyDiscard = false;
useSubgroupOpsClustered = false;
}
Expand Down

0 comments on commit 2424cf0

Please sign in to comment.