Skip to content

Commit

Permalink
Add Proton-LFX2 patches
Browse files Browse the repository at this point in the history
  • Loading branch information
FakeMichau committed Jun 4, 2024
1 parent ca6aae5 commit c573f68
Show file tree
Hide file tree
Showing 14 changed files with 6,868 additions and 295 deletions.
324 changes: 30 additions & 294 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dxvk-nvapi
Submodule dxvk-nvapi updated 80 files
+1 −2 .clang-format-ignore
+0 −6 .github/dependabot.yml
+7 −4 .github/workflows/artifacts.yml
+0 −56 .github/workflows/build-test-windows.yml
+1 −2 .gitignore
+22 −19 README.md
+1 −1 external/Vulkan-Headers
+3 −2 inc/NvApiDriverSettings.c
+3 −2 inc/NvApiDriverSettings.h
+177 −879 inc/catch_amalgamated.cpp
+556 −1,214 inc/catch_amalgamated.hpp
+2 −153 inc/nvapi.h
+1 −5 inc/nvapi_interface.h
+25 −740 inc/nvml.h
+5,884 −12 inc/trompeloeil.hpp
+0 −399 inc/trompeloeil/coro.hpp
+0 −370 inc/trompeloeil/cpp11_shenanigans.hpp
+0 −223 inc/trompeloeil/lifetime.hpp
+0 −221 inc/trompeloeil/matcher.hpp
+0 −98 inc/trompeloeil/matcher/any.hpp
+0 −163 inc/trompeloeil/matcher/compare.hpp
+0 −83 inc/trompeloeil/matcher/deref.hpp
+0 −82 inc/trompeloeil/matcher/not.hpp
+0 −148 inc/trompeloeil/matcher/re.hpp
+0 −4,060 inc/trompeloeil/mock.hpp
+0 −393 inc/trompeloeil/sequence.hpp
+0 −44 inc/trompeloeil/stream_tracer.hpp
+2 −3 meson.build
+12 −28 src/d3d/nvapi_d3d_instance.cpp
+6 −8 src/d3d/nvapi_d3d_instance.h
+0 −129 src/d3d/nvapi_d3d_low_latency_device.cpp
+0 −46 src/d3d/nvapi_d3d_low_latency_device.h
+0 −26 src/d3d12/nvapi_d3d12_device.cpp
+0 −4 src/d3d12/nvapi_d3d12_device.h
+9 −0 src/dxvk/dxvk_interfaces.cpp
+27 −11 src/dxvk/dxvk_interfaces.h
+2 −1 src/meson.build
+5 −81 src/nvapi.cpp
+31 −132 src/nvapi_d3d.cpp
+38 −83 src/nvapi_d3d11.cpp
+35 −126 src/nvapi_d3d12.cpp
+0 −8 src/nvapi_disp.cpp
+4 −41 src/nvapi_drs.cpp
+34 −181 src/nvapi_gpu.cpp
+1 −9 src/nvapi_interface.cpp
+1 −4 src/nvapi_mosaic.cpp
+0 −5 src/nvapi_private.h
+0 −9 src/nvapi_sys.cpp
+0 −57 src/shared/shared_interfaces.h
+24 −60 src/sysinfo/nvapi_adapter.cpp
+0 −4 src/sysinfo/nvapi_adapter.h
+0 −2 src/sysinfo/nvapi_adapter_registry.cpp
+0 −8 src/sysinfo/vulkan.cpp
+0 −1 src/sysinfo/vulkan.h
+0 −19 src/util/util_env.cpp
+4 −19 src/util/util_log.cpp
+1 −27 src/util/util_op_code.h
+25 −35 src/util/util_statuscode.h
+0 −29 src/util/util_version.h
+22 −0 src/vkd3d-proton/vkd3d-proton_interfaces.cpp
+14 −21 src/vkd3d-proton/vkd3d-proton_interfaces.h
+2 −2 tests/main.cpp
+2 −2 tests/meson.build
+12 −376 tests/nvapi_d3d.cpp
+20 −22 tests/nvapi_d3d11.cpp
+33 −191 tests/nvapi_d3d12.cpp
+0 −29 tests/nvapi_d3d12_mocks.h
+0 −12 tests/nvapi_d3d_mocks.h
+0 −6 tests/nvapi_drs.cpp
+27 −180 tests/nvapi_sysinfo.cpp
+4 −4 tests/nvapi_sysinfo_hdr.cpp
+0 −1 tests/nvapi_sysinfo_mocks.h
+19 −19 tests/nvapi_sysinfo_nvml.cpp
+16 −67 tests/nvapi_sysinfo_topo.cpp
+4 −3 tests/nvapi_system.cpp
+0 −3 tests/nvapi_tests_private.h
+8 −39 tests/resource_factory_util.cpp
+2 −9 tests/resource_factory_util.h
+0 −45 tests/util.cpp
+1 −1 version.h.in
Binary file added lfx2-bin/latencyflex2_rust.dll
Binary file not shown.
Binary file added lfx2-bin/latencyflex2_rust_32.dll
Binary file not shown.
34 changes: 34 additions & 0 deletions patches/apply-patches.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash

git checkout -- proton
echo "Proton: Add patches"
patch -Np1 < ./patches/proton.patch
patch -Np1 < ./patches/makefile.patch

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

pushd vkd3d-proton || exit
git reset --hard HEAD
git clean -xdf
echo "VKD3D-Proton: Add LFX2 support"
patch -Np1 < ../patches/lfx2-vkd3d.patch
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 c573f68

Please sign in to comment.