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 . + + // 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 , + // 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;