diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-18 17:39:04 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-18 17:39:04 +0000 |
commit | 9897403e8218123dc1c8d3797b083652f08779a9 (patch) | |
tree | 4094b584adf5bb6134895d92d675388b79bc13a0 /net-misc/sunshine/files | |
parent | 08f1ae6b8bd1202a10c5f0d07ee0adc846e0308c (diff) |
gentoo auto-resync : 18:02:2024 - 17:39:04
Diffstat (limited to 'net-misc/sunshine/files')
-rw-r--r-- | net-misc/sunshine/files/sunshine-0.22.0-nvcodec.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net-misc/sunshine/files/sunshine-0.22.0-nvcodec.patch b/net-misc/sunshine/files/sunshine-0.22.0-nvcodec.patch new file mode 100644 index 000000000000..bc7681beedf0 --- /dev/null +++ b/net-misc/sunshine/files/sunshine-0.22.0-nvcodec.patch @@ -0,0 +1,27 @@ +From 36b5a18ffd0cdf379b579db91bfaacc46e8c4757 Mon Sep 17 00:00:00 2001 +From: James Le Cuirot <chewi@gentoo.org> +Date: Sun, 18 Feb 2024 10:25:25 +0000 +Subject: [PATCH] Be less strict about the nv-codec-headers version + +Using the bundled version is awkward. Restrict the major version only +and deal with any issues later. +--- + src/nvenc/nvenc_base.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/nvenc/nvenc_base.cpp b/src/nvenc/nvenc_base.cpp +index b9eba5a..e11c4e2 100644 +--- a/src/nvenc/nvenc_base.cpp ++++ b/src/nvenc/nvenc_base.cpp +@@ -11,7 +11,7 @@ + // - NV_ENC_*_VER definitions where the value inside NVENCAPI_STRUCT_VERSION() was increased
+ // - Incompatible struct changes in nvEncodeAPI.h (fields removed, semantics changed, etc.)
+ // - Test both old and new drivers with all supported codecs
+-#if NVENCAPI_VERSION != MAKE_NVENC_VER(12U, 0U)
++#if NVENCAPI_MAJOR_VERSION != 12
+ #error Check and update NVENC code for backwards compatibility!
+ #endif
+
+-- +2.43.0 + |