about summary refs log tree commit diff
path: root/pkgs/applications/video/obs-studio/plugins/obs-backgroundremoval/use-cpu-backend.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/video/obs-studio/plugins/obs-backgroundremoval/use-cpu-backend.patch')
-rw-r--r--pkgs/applications/video/obs-studio/plugins/obs-backgroundremoval/use-cpu-backend.patch32
1 files changed, 0 insertions, 32 deletions
diff --git a/pkgs/applications/video/obs-studio/plugins/obs-backgroundremoval/use-cpu-backend.patch b/pkgs/applications/video/obs-studio/plugins/obs-backgroundremoval/use-cpu-backend.patch
deleted file mode 100644
index 0db5592e5cdb7..0000000000000
--- a/pkgs/applications/video/obs-studio/plugins/obs-backgroundremoval/use-cpu-backend.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From d04e167f9081a3ec8c49f0967b5b0cec79e40e4d Mon Sep 17 00:00:00 2001
-From: Raphael Robatsch <raphael-git@tapesoftware.net>
-Date: Fri, 14 Oct 2022 16:55:36 +0200
-Subject: [PATCH] unix: use CPU backend instead of DirectML
-
----
- src/background-filter.cpp | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/src/background-filter.cpp b/src/background-filter.cpp
-index 32c6483..55e838f 100644
---- a/src/background-filter.cpp
-+++ b/src/background-filter.cpp
-@@ -205,10 +205,14 @@ static void createOrtSession(struct background_removal_filter *tf) {
-         if (tf->useGPU == USEGPU_CUDA) {
-             Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_CUDA(sessionOptions, 0));
-         }
--#else
-+#elseif _WIN32
-         if (tf->useGPU == USEGPU_DML) {
-             Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_DML(sessionOptions, 0));
-         }
-+#else
-+        if (tf->useGPU == USEGPU_CPU) {
-+            Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_CPU(sessionOptions, 0));
-+        }
- #endif
- 		tf->session.reset(new Ort::Session(*tf->env, tf->modelFilepath, sessionOptions));
- 	} catch (const std::exception& e) {
--- 
-2.37.3
-