diff options
| author | 2023-07-05 09:23:56 -0400 | |
|---|---|---|
| committer | 2023-07-05 09:23:56 -0400 | |
| commit | d8eb37fbec5a7cde72dc0603f9d9a03c85091c1b (patch) | |
| tree | c099743d1656c81d002e5894e486fbef98f12ff7 | |
| parent | Merge pull request #11006 from german77/nfc_nfc (diff) | |
| parent | vulkan_common: use device local preferred for image memory (diff) | |
| download | yuzu-d8eb37fbec5a7cde72dc0603f9d9a03c85091c1b.tar.gz yuzu-d8eb37fbec5a7cde72dc0603f9d9a03c85091c1b.tar.xz yuzu-d8eb37fbec5a7cde72dc0603f9d9a03c85091c1b.zip | |
Merge pull request #10994 from liamwhite/ue4-preferred
vulkan_common: use device local preferred for image memory
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_memory_allocator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/vulkan_common/vulkan_memory_allocator.cpp b/src/video_core/vulkan_common/vulkan_memory_allocator.cpp index a2ef0efa4..42f3ee0b4 100644 --- a/src/video_core/vulkan_common/vulkan_memory_allocator.cpp +++ b/src/video_core/vulkan_common/vulkan_memory_allocator.cpp | |||
| @@ -221,8 +221,8 @@ vk::Image MemoryAllocator::CreateImage(const VkImageCreateInfo& ci) const { | |||
| 221 | const VmaAllocationCreateInfo alloc_ci = { | 221 | const VmaAllocationCreateInfo alloc_ci = { |
| 222 | .flags = VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT, | 222 | .flags = VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT, |
| 223 | .usage = VMA_MEMORY_USAGE_AUTO_PREFER_DEVICE, | 223 | .usage = VMA_MEMORY_USAGE_AUTO_PREFER_DEVICE, |
| 224 | .requiredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, | 224 | .requiredFlags = 0, |
| 225 | .preferredFlags = 0, | 225 | .preferredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, |
| 226 | .memoryTypeBits = 0, | 226 | .memoryTypeBits = 0, |
| 227 | .pool = VK_NULL_HANDLE, | 227 | .pool = VK_NULL_HANDLE, |
| 228 | .pUserData = nullptr, | 228 | .pUserData = nullptr, |