Skip to content

Commit

Permalink
Update upstream dxvk-nvapi
Browse files Browse the repository at this point in the history
This will build the Vulkan Reflex Layer
  • Loading branch information
SveSop committed Jan 24, 2025
1 parent 34bb5e9 commit b3de9cf
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ War Thunder : `DXVK_NVAPI_GPU_ARCH=GP100`
Ghost of Tsushima : `DXVK_NVAPI_GPU_ARCH=GA100`
Indiana Jones and the Great Circle: (See own section below).

### Vulkan Reflex Layer
This includes the Vulkan Reflex layer in /layer subfolder.
Read about usage here:
[https://github.com/jp7677/dxvk-nvapi#vulkan-reflex-layer](https://github.com/jp7677/dxvk-nvapi#vulkan-reflex-layer)

### WINE-NVML
In order to use DXVK-NVAPI (NvAPI) with some extra GPU information (temps and the likes)
you need to copy the NVML binaries to your wine binaries folder. You can do this by
Expand Down
25 changes: 24 additions & 1 deletion package-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ function prepare {
src/nvapi_d3d.cpp \
src/nvapi_d3d11.cpp \
src/nvapi_d3d12.cpp \
src/nvapi_vulkan.cpp \
src/nvapi_interface.cpp \
src/nvapi_interface_private.h \
external/nvapi/nvapi_interface.h
Expand Down Expand Up @@ -200,11 +201,33 @@ prepare
build_arch 64
build_arch 32

# Copy installscripts
# Build Vulkan reflax layer
cd "$NVAPI_SRC_DIR"
rm -f "$NVAPI_SRC_DIR"/layer/{version,config}.h

meson setup \
--buildtype "release" \
--prefix "$NVLIBS_BUILD_DIR/layer" \
--libdir '' \
--strip \
-Dabsolute_library_path=false \
-Dlibrary_path_prefix=./ \
-Dmanifest_install_dir=. \
"$NVLIBS_BUILD_DIR/build.layer" \
"$NVAPI_SRC_DIR/layer"

cd "$NVLIBS_BUILD_DIR/build.layer"
ninja install

cp "$NVLIBS_BUILD_DIR"/build.layer/{version,config}.h "$NVAPI_SRC_DIR/layer"
rm -R "$NVLIBS_BUILD_DIR/build.layer"

# Copy installscripts and README
cp $NVLIBS_SRC_DIR/*.sh "$NVLIBS_BUILD_DIR/"
rm $NVLIBS_BUILD_DIR/package-release.sh
chmod +x $NVLIBS_BUILD_DIR/*.sh
cp "$NVLIBS_SRC_DIR/Readme_nvml.txt" "$NVLIBS_BUILD_DIR/Readme_nvml.txt"
cp "$NVLIBS_SRC_DIR/README.md" "$NVLIBS_BUILD_DIR/README.md"

# Move test
mkdir -p "$NVLIBS_BUILD_DIR/bin" && mv "$NVLIBS_BUILD_DIR/x64/nvapi64-tests.exe" "$NVLIBS_BUILD_DIR/bin/"
Expand Down

0 comments on commit b3de9cf

Please sign in to comment.