Skip to content

Commit

Permalink
Revert "util: Spoof Ada and later GPUs as Ampere for Ghost of Tsushima"
Browse files Browse the repository at this point in the history
This reverts commit f86f56b.

The issue was caused by DLSS-FG being in theory supported by reported hardware but the system / Wine environment failing required checks (hardware scheduling and nvofapi), making the game enter a half-broken state where it tripped over its own present calls. This should no longer be the case, at least in Proton.
  • Loading branch information
Saancreed committed Nov 6, 2024
1 parent 23ba796 commit 3d63391
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/util/util_env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,13 @@ namespace dxvk::env {
}
}

bool isGhostOfTsushima() {
return getExecutableName() == std::string("GhostOfTsushima.exe");
}

bool needsAmpereSpoofing(NV_GPU_ARCHITECTURE_ID architectureId, void* pReturnAddress) {
// Check if we need to workaround NVIDIA Bug 3634851
if (architectureId >= NV_GPU_ARCHITECTURE_AD100 && isDLSSVersion20To24(pReturnAddress)) {
log::info("Spoofing Ampere for Ada and later due to DLSS version 2.0-2.4");
return true;
}

if (architectureId >= NV_GPU_ARCHITECTURE_AD100 && isGhostOfTsushima()) {
log::info("Spoofing Ampere for Ada and later due to detecting GhostOfTsushima.exe");
return true;
}

return false;
}

Expand Down

0 comments on commit 3d63391

Please sign in to comment.