From bb29dcb7f2dad1e0ed67b32387912d56e40a5e5d Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Sat, 7 Aug 2021 15:15:01 +0200 Subject: vulkan_memory_allocator: Respect bufferImageGranularity --- src/video_core/vulkan_common/vulkan_memory_allocator.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/video_core/vulkan_common/vulkan_memory_allocator.h') diff --git a/src/video_core/vulkan_common/vulkan_memory_allocator.h b/src/video_core/vulkan_common/vulkan_memory_allocator.h index b61e931e0..86e8ed119 100644 --- a/src/video_core/vulkan_common/vulkan_memory_allocator.h +++ b/src/video_core/vulkan_common/vulkan_memory_allocator.h @@ -123,6 +123,8 @@ private: const VkPhysicalDeviceMemoryProperties properties; ///< Physical device properties. const bool export_allocations; ///< True when memory allocations have to be exported. std::vector> allocations; ///< Current allocations. + VkDeviceSize buffer_image_granularity; // The granularity for adjacent offsets between buffers + // and optimal images }; /// Returns true when a memory usage is guaranteed to be host visible. -- cgit v1.2.3