Update README and other locations to include patch-vk info

Updated the README template, as well as `drivers.json` to include this new patch category

Signed-off-by: Amjad Alsharafi <amjadsharafi10@gmail.com>
This commit is contained in:
Amjad Alsharafi
2024-12-03 17:04:35 +08:00
parent f0ba18162e
commit 35d33fb05b
6 changed files with 483 additions and 242 deletions

View File

@@ -9,7 +9,7 @@ SYNOPSIS
DESCRIPTION
Update the patch for Nvidia NVENC or NVFBC drivers for a new version
-f PATCH_FILE The file (patch.sh/patch-fbc.sh) that should be updated
-f PATCH_FILE The file (patch.sh/patch-fbc.sh/patch-vk.sh) that should be updated
-v VERSION Driver version (by default copies latest existing patch)
-o OLD_VERSION Copy patch string from this older driver version
-b PATCHSTR Append PATCHSTR to the patch_list

View File

@@ -38,9 +38,11 @@ def linux_readme(data):
driver_link = ''
nvenc_patch = md_true if drv['nvenc_patch'] else md_false
nvfbc_patch = md_true if drv['nvfbc_patch'] else md_false
nvvk_patch = md_true if drv['nvvk_patch'] else md_false
yield row_tmpl.substitute(version=drv['version'],
nvenc_patch=nvenc_patch,
nvfbc_patch=nvfbc_patch,
nvvk_patch=nvvk_patch,
driver_link=driver_link)
version_list = "\n".join(row_gen())
latest_version = drivers[-1]['version']

View File

@@ -1 +1 @@
| $version | $nvenc_patch | $nvfbc_patch | $driver_link |
| $version | $nvenc_patch | $nvfbc_patch | $nvvk_patch | $driver_link |

View File

@@ -7,6 +7,8 @@ NVENC and NvFBC patches for Nvidia drivers
[NvFBC patch](patch-fbc.sh) allows to use NvFBC on consumer-grade GPUs. It should be applied same way as NVENC `patch.sh`, except you have to use `patch-fbc.sh` instead.
[Vulkan Patch](patch-vk.sh) removes restriction on maximum number of simultaneous Vulkan video encoding sessions imposed by Nvidia to consumer-grade GPUs, this is similar to [NVENC patch](patch.sh) but for Vulkan API.
Main target operating system is **GNU/Linux**, but for **Windows** support see [**win** (clickable)](win).
---
@@ -25,8 +27,8 @@ If you want to donate, please send it to your favorite open source organizations
## Version Table
| Version | NVENC patch | NVFBC patch | Driver link |
| :--- | :---: | :---: | ---: |
| Version | NVENC patch | NVFBC patch | NV_VK patch | Driver link |
| :--- | :---: | :---: | :---: | :---: |
$version_list
## Synopsis
@@ -70,8 +72,27 @@ DESCRIPTION
-d VERSION Use VERSION driver version when looking for libraries
instead of using nvidia-smi to detect it.
-f Enable support for Flatpak NVIDIA drivers.
```
```
# bash ./patch-vk.sh -h
SYNOPSIS
patch-vk.sh [-s] [-r|-h|-c VERSION|-l|-f]
DESCRIPTION
The patch for Nvidia vulkan drivers to remove NVENC session limit
-s Silent mode (No output)
-r Rollback to original (Restore lib from backup)
-h Print this help message
-c VERSION Check if version VERSION supported by this patch.
Returns true exit code (0) if version is supported.
-l List supported driver versions
-d VERSION Use VERSION driver version when looking for libraries
instead of using nvidia-smi to detect it.
-j Output the patch list to stdout as JSON
```
## Step-by-Step guide