switcheroo-control/debian/patches/libva-nvidia.diff
Ward from fusion-voyager-3 cce8430c0d
Some checks failed
PikaOS Package Build Only (Canary) (amd64-v3) / build (push) Failing after 21s
PikaOS Package Build Only (amd64-v3) / build (push) Failing after 1s
PikaOS Package Build & Release (Canary) (amd64-v3) / build (push) Failing after 13s
PikaOS Package Build & Release (amd64-v3) / build (push) Failing after 0s
port to pika os 4
2024-07-25 17:57:35 +03:00

15 lines
603 B
Diff

diff '--color=auto' -ru a/src/switcheroo-control.c b/src/switcheroo-control.c
--- a/src/switcheroo-control.c 2022-07-01 12:29:43.000000000 +0300
+++ b/src/switcheroo-control.c 2023-09-30 00:39:37.340679199 +0300
@@ -254,6 +254,10 @@
/* Make sure Vulkan apps always select Nvidia GPUs */
g_ptr_array_add (array, g_strdup ("__VK_LAYER_NV_optimus"));
g_ptr_array_add (array, g_strdup ("NVIDIA_only"));
+
+ /* Make sure LIBVA apps always select Nvidia GPUs */
+ g_ptr_array_add (array, g_strdup ("LIBVA_DRIVER_NAME"));
+ g_ptr_array_add (array, g_strdup ("nvidia"));
} else {
char *id;