diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-02 14:53:28 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-02 14:53:28 +0000 |
commit | 4eaeaf683cb193978f14d55e52ea834d32e8a089 (patch) | |
tree | cd23a4d91c322f29e5c001bc033a008e309831a4 /app-misc/fastfetch/files/fastfetch-2.5.0-nvidia2.patch | |
parent | e12724a13a1677867978f5ecd7fabda4eb1e3aa8 (diff) |
gentoo auto-resync : 02:01:2024 - 14:53:28
Diffstat (limited to 'app-misc/fastfetch/files/fastfetch-2.5.0-nvidia2.patch')
-rw-r--r-- | app-misc/fastfetch/files/fastfetch-2.5.0-nvidia2.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app-misc/fastfetch/files/fastfetch-2.5.0-nvidia2.patch b/app-misc/fastfetch/files/fastfetch-2.5.0-nvidia2.patch new file mode 100644 index 000000000000..5f256a61a34d --- /dev/null +++ b/app-misc/fastfetch/files/fastfetch-2.5.0-nvidia2.patch @@ -0,0 +1,20 @@ +https://bugs.gentoo.org/921175 + +--- a/src/detection/gpu/gpu_wsl.cpp ++++ b/src/detection/gpu/gpu_wsl.cpp +@@ -98,6 +98,7 @@ const char* ffGPUDetectByDirectX(FF_MAYBE_UNUSED const FFGPUOptions* options, FF + const char* vendorStr = ffGetGPUVendorString((unsigned) hardwareId.vendorID); + ffStrbufSetStatic(&gpu->vendor, vendorStr); + ++ #ifdef FF_HAVE_NVIDIA_GPU + if (vendorStr == FF_GPU_VENDOR_NAME_NVIDIA && (options->driverSpecific || options->temp)) + { + FFGpuDriverCondition cond = { +@@ -117,6 +118,7 @@ const char* ffGPUDetectByDirectX(FF_MAYBE_UNUSED const FFGPUOptions* options, FF + .frequency = &gpu->frequency, + }, "/usr/lib/wsl/lib/libnvidia-ml.so"); + } ++ #endif + } + } + |