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
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user