diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-22 02:46:58 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-22 03:06:38 +0200 |
commit | 6f47bd9641c04a2cdc8f23fafd49069eab00e3fb (patch) | |
tree | e4cc0546f628fa1706c88d8ee64556c083eb531c /src/video_core/renderer_vulkan/vk_memory_manager.h | |
parent | Merge pull request #3714 from lioncash/copies (diff) | |
download | yuzu-6f47bd9641c04a2cdc8f23fafd49069eab00e3fb.tar yuzu-6f47bd9641c04a2cdc8f23fafd49069eab00e3fb.tar.gz yuzu-6f47bd9641c04a2cdc8f23fafd49069eab00e3fb.tar.bz2 yuzu-6f47bd9641c04a2cdc8f23fafd49069eab00e3fb.tar.lz yuzu-6f47bd9641c04a2cdc8f23fafd49069eab00e3fb.tar.xz yuzu-6f47bd9641c04a2cdc8f23fafd49069eab00e3fb.tar.zst yuzu-6f47bd9641c04a2cdc8f23fafd49069eab00e3fb.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_memory_manager.h')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_memory_manager.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/video_core/renderer_vulkan/vk_memory_manager.h b/src/video_core/renderer_vulkan/vk_memory_manager.h index 5b6858e9b..1af88e3d4 100644 --- a/src/video_core/renderer_vulkan/vk_memory_manager.h +++ b/src/video_core/renderer_vulkan/vk_memory_manager.h @@ -40,11 +40,6 @@ public: /// Commits memory required by the image and binds it. VKMemoryCommit Commit(const vk::Image& image, bool host_visible); - /// Returns true if the memory allocations are done always in host visible and coherent memory. - bool IsMemoryUnified() const { - return is_memory_unified; - } - private: /// Allocates a chunk of memory. bool AllocMemory(VkMemoryPropertyFlags wanted_properties, u32 type_mask, u64 size); @@ -53,12 +48,8 @@ private: VKMemoryCommit TryAllocCommit(const VkMemoryRequirements& requirements, VkMemoryPropertyFlags wanted_properties); - /// Returns true if the device uses an unified memory model. - static bool GetMemoryUnified(const VkPhysicalDeviceMemoryProperties& properties); - - const VKDevice& device; ///< Device handler. - const VkPhysicalDeviceMemoryProperties properties; ///< Physical device properties. - const bool is_memory_unified; ///< True if memory model is unified. + const VKDevice& device; ///< Device handler. + const VkPhysicalDeviceMemoryProperties properties; ///< Physical device properties. std::vector<std::unique_ptr<VKMemoryAllocation>> allocations; ///< Current allocations. }; |