blob: 3eebf5b2b2a66a3f35dbd010ed57ecf2705cd20c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
|