summaryrefslogtreecommitdiffstats
path: root/src/video_core/vulkan_common/vulkan_memory_allocator.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-10-10Not not allocate DeviceLocal buffers as mappedKelebek11-4/+4
2023-10-06Allow GPUs without rebar to open multiple RenderDoc capturesKelebek11-4/+17
2023-07-31vma: enable options everywhereAlexandre Bouvier1-2/+1
2023-07-02vulkan_common: use device local preferred for image memoryLiam1-2/+2
2023-06-26externals: Use cmake subdirectoryGPUCode1-2/+0
2023-06-22vulkan_common: Remove required flagsGPUCode1-15/+1
* Allows VMA to fallback to system RAM instead of crashing
2023-06-18renderer_vulkan: Add missing initializersGPUCode1-1/+5
2023-06-18renderer_vulkan: Use VMA for buffersGPUCode1-24/+83
2023-06-18renderer_vulkan: Use VMA for imagesGPUCode1-8/+22
2023-06-18memory_allocator: Remove OpenGL interopGPUCode1-56/+2
* Appears to be unused atm
2023-05-14vulkan_common: fix incompatible property flagsLiam1-1/+1
2022-11-23general: fix compile for Apple ClangLiam1-0/+1
2022-06-14common: Change semantics of UNREACHABLE to unconditionally crashLiam1-3/+3
2022-04-23general: Convert source file copyright comments over to SPDXMorph1-3/+2
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-03-25Garbage Collection: Redesign the algorithm to do a better use of memory.Fernando Sahmkow1-1/+1
2021-08-07vulkan_memory_allocator: Respect bufferImageGranularityRobin Kertels1-2/+6
2021-06-16vulkan_memory_allocator: Release allocations with no commitsReinUsesLisp1-5/+17
2021-05-27vulkan_memory_allocator: Allow textures to be allocated in host memoryReinUsesLisp1-26/+41
Allow Vulkan's allocator to use host memory when there's no more device local memory. This delays OOM, but it will eventually still happen.
2021-03-30vulkan_common: enable OpenGL interop on other UnicesJan Beich1-4/+4
2021-02-13vulkan_common: Expose interop and headless devicesReinUsesLisp1-10/+68
2021-01-15vulkan_memory_allocator: Remove unnecesary 'device' memory from commitsReinUsesLisp1-10/+10
2021-01-15vulkan_memory_allocator: Add allocation support for download typesReinUsesLisp1-51/+78
Implements the allocator logic to handle download memory types. This will try to use HOST_CACHED_BIT when available.
2021-01-15vulkan_memory_allocator: Add "download" memory usage hintReinUsesLisp1-5/+19
Allow users of the allocator to hint memory usage for downloads. This removes the non-descriptive boolean passed for "host visible" or not host visible memory commits, and uses an enum to hint device local, upload and download usages.
2021-01-15vulkan_common: Move allocator to the common directoryReinUsesLisp1-1/+1
Allow using the abstraction from the OpenGL backend.
2021-01-15renderer_vulkan: Rename Vulkan memory manager to memory allocatorReinUsesLisp1-7/+7
"Memory manager" collides with the guest GPU memory manager, and a memory allocator sounds closer to what the abstraction aims to be.
2021-01-15vk_memory_manager: Improve memory manager and its APIReinUsesLisp1-120/+117
Fix a bug where the memory allocator could leave gaps between commits. To fix this the allocation algorithm was reworked, although it's still short in number of lines of code. Rework the allocation API to self-contained movable objects instead of naively using an unique_ptr to do the job for us. Remove the VK prefix.
2021-01-04renderer_vulkan: Move device abstraction to vulkan_commonReinUsesLisp1-1/+1
2021-01-03renderer_vulkan: Rename VKDevice to DeviceReinUsesLisp1-4/+4
The "VK" prefix predates the "Vulkan" namespace. It was carried around the codebase for consistency. "VKDevice" currently is a bad alias with "VkDevice" (only an upcase character of difference) that can cause confusion. Rename all instances of it.
2020-12-31vulkan_common: Rename renderer_vulkan/wrapper.h to vulkan_common/vulkan_wrapper.hReinUsesLisp1-1/+1
Allows sharing Vulkan wrapper code between different rendering backends.
2020-12-30video_core: Rewrite the texture cacheReinUsesLisp1-1/+1
The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage.The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage. This commit aims to address those issues.
2020-12-05video_core: Resolve more variable shadowing scenarios pt.2Lioncash1-9/+9
Migrates the video core code closer to enabling variable shadowing warnings as errors. This primarily sorts out shadowing occurrences within the Vulkan code.
2020-07-17vk_memory_manager: Make use of designated initializers where applicableLioncash1-7/+6
2020-04-22vk_memory_manager: Remove unified memory model flagReinUsesLisp1-12/+1
All drivers (even Intel) seem to have a device local memory type that is not host visible. Remove this flag so all devices follow the same path. This fixes a crash when trying to map to host device local memory on integrated devices.
2020-04-11renderer_vulkan: Drop Vulkan-HppReinUsesLisp1-60/+44
2020-01-06vk_memory_manager: Misc changesReinUsesLisp1-76/+82
* Allocate memory in discrete exponentially increasing chunks until the 128 MiB threshold. Allocations larger thant that increase linearly by 256 MiB (depending on the required size). This allows to use small allocations for small resources. * Move memory maps to a RAII abstraction. To optimize for debugging tools (like RenderDoc) users will map/unmap on usage. If this ever becomes a noticeable overhead (from my profiling it doesn't) we can transparently move to persistent memory maps without harming the API, getting optimal performance for both gameplay and debugging. * Improve messages on exceptional situations. * Fix typos "requeriments" -> "requirements". * Small style changes.
2019-02-27vk_memory_manager: Reorder constructor initializer list in terms of member declaration orderLioncash1-1/+1
Reorders members in the order that they would actually be initialized in. Silences a -Wreorder warning.
2019-02-24vk_memory_manager: Fixup commit interval allocationReinUsesLisp1-2/+1
VKMemoryCommitImpl was using as the end of its interval "begin + end". That ended up wasting memory.
2019-02-19vk_memory_manager: Implement memory managerReinUsesLisp1-0/+253
A memory manager object handles the memory allocations for a device. It allocates chunks of Vulkan memory objects and then suballocates.