Skip to content

Commit

Permalink
wine: add HAGS spoof and move nvapi to a patch
Browse files Browse the repository at this point in the history
  • Loading branch information
FakeMichau committed Jan 17, 2024
1 parent e3345b0 commit 820916b
Show file tree
Hide file tree
Showing 6 changed files with 1,820 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
url = https://github.com/KhronosGroup/OpenXR-SDK
[submodule "dxvk-nvapi"]
path = dxvk-nvapi
url = https://github.com/FakeMichau/dxvk-nvapi
url = https://github.com/jp7677/dxvk-nvapi.git
[submodule "vkd3d"]
path = vkd3d
url = https://github.com/ValveSoftware/vkd3d
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,14 @@ All upscalers are held in `Proton-LFX2/files/upscalers/` folder. The name of the

By default only `2.2.1` is usable. It's a version of [CyberFSR](https://github.com/PotatoOfDoom/CyberFSR2) that uses FSR 2.2.1 and works with DirectX 11 games.
You are free to add more, folder for version 2.1 exists but no DLL is provided to not infringe PotatoOfDoom's license.


Nukem's FSR3 mod
------------

You can use Nukem's mod with this build thanks to [those patches](https://github.com/ValveSoftware/Proton/issues/7361). But you need to provide _nvngx.dll file from nvidia's driver package - just extract it and copy the file to system32 inside your game's prefix. You also need to add an environment variable to spoof HAGS:

`WINEHAGS=1`

That will also effectively disable LFX2 because currently it causes a crash. But you can still use `LFX2=1` to spoof an Nvidia GPU instead of doing that manually.
Also remember about applying the registry signature override file.
2 changes: 1 addition & 1 deletion dxvk-nvapi
9 changes: 9 additions & 0 deletions patches/apply-patches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,13 @@ popd || exit
pushd wine || exit
git reset --hard HEAD
git clean -xdf
echo "Wine: Add HAGS spoof"
patch -Np1 < ../patches/wine-hags-spoof.patch
popd || exit

pushd dxvk-nvapi || exit
git reset --hard HEAD
git clean -xdf
echo "DXVK-NVAPI: Add LFX2 support"
patch -Np1 < ../patches/lfx2-nvapi.patch
popd || exit
Loading

0 comments on commit 820916b

Please sign in to comment.