Skip to content

Commit

Permalink
Update vkma to 3.2.0 (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Jan 3, 2025
1 parent ced874f commit 241a799
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/libraries/vkma
Submodule vkma updated 267 files
5 changes: 3 additions & 2 deletions app/src/main/cpp/skyline/gpu/memory_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ namespace skyline::gpu::memory {
};
VmaAllocationCreateInfo allocationCreateInfo{
.flags = VMA_ALLOCATION_CREATE_MAPPED_BIT,
.usage = VMA_MEMORY_USAGE_CPU_ONLY,
.requiredFlags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT,
.preferredFlags = VK_MEMORY_PROPERTY_HOST_CACHED_BIT, // may increase performance
};

VkBuffer buffer;
Expand Down Expand Up @@ -119,7 +120,7 @@ namespace skyline::gpu::memory {

Image MemoryManager::AllocateImage(const vk::ImageCreateInfo &createInfo) {
VmaAllocationCreateInfo allocationCreateInfo{
.usage = VMA_MEMORY_USAGE_GPU_ONLY,
.requiredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
};

VkImage image;
Expand Down

0 comments on commit 241a799

Please sign in to comment.