summaryrefslogtreecommitdiffstats
path: root/src/video_core/vulkan_common
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-07-05 15:23:56 +0200
committerGitHub <noreply@github.com>2023-07-05 15:23:56 +0200
commitd8eb37fbec5a7cde72dc0603f9d9a03c85091c1b (patch)
treec099743d1656c81d002e5894e486fbef98f12ff7 /src/video_core/vulkan_common
parentMerge pull request #11006 from german77/nfc_nfc (diff)
parentvulkan_common: use device local preferred for image memory (diff)
downloadyuzu-d8eb37fbec5a7cde72dc0603f9d9a03c85091c1b.tar
yuzu-d8eb37fbec5a7cde72dc0603f9d9a03c85091c1b.tar.gz
yuzu-d8eb37fbec5a7cde72dc0603f9d9a03c85091c1b.tar.bz2
yuzu-d8eb37fbec5a7cde72dc0603f9d9a03c85091c1b.tar.lz
yuzu-d8eb37fbec5a7cde72dc0603f9d9a03c85091c1b.tar.xz
yuzu-d8eb37fbec5a7cde72dc0603f9d9a03c85091c1b.tar.zst
yuzu-d8eb37fbec5a7cde72dc0603f9d9a03c85091c1b.zip
Diffstat (limited to 'src/video_core/vulkan_common')
-rw-r--r--src/video_core/vulkan_common/vulkan_memory_allocator.cpp4
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 {
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,