Browse Source
Merge pull request #10994 from liamwhite/ue4-preferred
vulkan_common: use device local preferred for image memory
pull/15/merge
liamwhite
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/video_core/vulkan_common/vulkan_memory_allocator.cpp
|
|
|
@ -221,8 +221,8 @@ vk::Image MemoryAllocator::CreateImage(const VkImageCreateInfo& ci) const { |
|
|
|
const VmaAllocationCreateInfo alloc_ci = { |
|
|
|
.flags = VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT, |
|
|
|
.usage = VMA_MEMORY_USAGE_AUTO_PREFER_DEVICE, |
|
|
|
.requiredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, |
|
|
|
.preferredFlags = 0, |
|
|
|
.requiredFlags = 0, |
|
|
|
.preferredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, |
|
|
|
.memoryTypeBits = 0, |
|
|
|
.pool = VK_NULL_HANDLE, |
|
|
|
.pUserData = nullptr, |
|
|
|
|