From 8416e09eb435fc8df7d247165e40baa397cd4357 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Mon, 28 Apr 2025 13:22:41 +0200 Subject: [PATCH] Vulkan: Validation error when allocating large vertex buffers When allocating a large vertex buffer on NVIDIA it tried to allocate it on the GPU and host visible. This section is limited in size (256MB). However when allocating a large vertex buffer it should not have been chosen. Detected during investigation of #137909. It removes the validation error, but it is unclear yet if this solves the' crash as I wasn't able to reproduce the crash. Pull Request: https://projects.blender.org/blender/blender/pulls/138079 --- source/blender/gpu/vulkan/vk_vertex_buffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/gpu/vulkan/vk_vertex_buffer.cc b/source/blender/gpu/vulkan/vk_vertex_buffer.cc index 830b6895887..37f48b1591d 100644 --- a/source/blender/gpu/vulkan/vk_vertex_buffer.cc +++ b/source/blender/gpu/vulkan/vk_vertex_buffer.cc @@ -210,7 +210,7 @@ void VKVertexBuffer::allocate() buffer_.create(size_alloc_get(), vk_buffer_usage, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, - VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT, + 0, VmaAllocationCreateFlags(0)); debug::object_label(buffer_.vk_handle(), "VertexBuffer"); }