Skip to content

Commit c29f6f0

Browse files
Saancreedjp7677
authored andcommitted
util: Spoof Ada and later GPUs as Ampere for The Great Circle
1 parent 70b5ce4 commit c29f6f0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/util/util_env.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,23 @@ namespace dxvk::env {
117117
}
118118
}
119119

120+
bool isTheGreatCircle() {
121+
static constexpr auto name = std::string_view("TheGreatCircle.exe");
122+
return getExecutableName() == name;
123+
}
124+
120125
bool needsAmpereSpoofing(NV_GPU_ARCHITECTURE_ID architectureId, void* pReturnAddress) {
121126
// Check if we need to workaround NVIDIA Bug 3634851
122127
if (architectureId >= NV_GPU_ARCHITECTURE_AD100 && isDLSSVersion20To24(pReturnAddress)) {
123128
log::info("Spoofing Ampere for Ada and later due to DLSS version 2.0-2.4");
124129
return true;
125130
}
126131

132+
if (architectureId >= NV_GPU_ARCHITECTURE_AD100 && isTheGreatCircle()) {
133+
log::info("Spoofing Ampere for Ada and later due to detecting TheGreatCircle.exe");
134+
return true;
135+
}
136+
127137
return false;
128138
}
129139

0 commit comments

Comments
 (0)