mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
media-libs/libplacebo: backport vulkan fix for nvidia-595.x
This workaround was already needed on Windows, but seems whatever was causing this there was now added to the Linux drivers as well. Previous libplacebo was not affected given using deferred alloc is new to this version, so this just reverts to the previous state for NVIDIA users and lets it be used for other cards. I'd hope there will be a new release soon, but given this sometimes drag may as well backport right away. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
See comment below for explanation/links, this seemingly started being
|
||||
an issue on Linux with nvidia-drivers-595.45.04
|
||||
--- a/src/vulkan/swapchain.c
|
||||
+++ b/src/vulkan/swapchain.c
|
||||
@@ -736,13 +736,13 @@
|
||||
|
||||
bool use_deferred_alloc = p->has_swapchain_maintenance1;
|
||||
-#ifdef _WIN32
|
||||
- // NVIDIA's Windows drivers have a bug where using deferred memory allocation
|
||||
- // causes crashes in the driver. It's unclear why exactly it happens, seems
|
||||
- // to be driver internal thread, calling into d3d12core.dll. Might be some
|
||||
- // overlay or who knows, disable it for now.
|
||||
- // See for more info <https://github.com/mpv-player/mpv/issues/17318>.
|
||||
+
|
||||
+ // NVIDIA's drivers have a bug where using deferred memory allocation
|
||||
+ // causes crashes in the driver. It's unclear why exactly it happens, but
|
||||
+ // the issue is consistent across Windows and Linux drivers.
|
||||
+ // See for more info <https://github.com/mpv-player/mpv/issues/17318>,
|
||||
+ // <https://github.com/mpv-player/mpv/issues/17543>
|
||||
if (vk->props.vendorID == VK_VENDOR_ID_NVIDIA)
|
||||
use_deferred_alloc = false;
|
||||
-#endif
|
||||
+
|
||||
if (use_deferred_alloc)
|
||||
sinfo.flags |= VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_KHR;
|
||||
+1
@@ -69,6 +69,7 @@ BDEPEND="
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-5.229.1-llvm-libunwind.patch
|
||||
"${FILESDIR}"/${P}-nvidia595-vulkan.patch
|
||||
)
|
||||
|
||||
python_check_deps() {
|
||||
Reference in New Issue
Block a user