From cc851c41c11bdc1c192003021df6dc3c2d2b74fb Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 29 Apr 2017 00:53:32 +1000 Subject: TextureCache: Move host texture utility functions to VideoCommon The appropriate place for these would be AbstractTexture, once it is finished. --- Source/Core/VideoBackends/Vulkan/Util.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'Source/Core/VideoBackends/Vulkan/Util.cpp') diff --git a/Source/Core/VideoBackends/Vulkan/Util.cpp b/Source/Core/VideoBackends/Vulkan/Util.cpp index a060cf3485..7ce433a79e 100644 --- a/Source/Core/VideoBackends/Vulkan/Util.cpp +++ b/Source/Core/VideoBackends/Vulkan/Util.cpp @@ -151,32 +151,6 @@ u32 GetBlockSize(VkFormat format) } } - -size_t GetPitchForTexture(VkFormat format, u32 row_length) -{ - switch (format) - { - case VK_FORMAT_BC1_RGBA_UNORM_BLOCK: - return static_cast(std::max(1u, row_length / 4)) * 8; - - case VK_FORMAT_BC2_UNORM_BLOCK: - return static_cast(std::max(1u, row_length / 4)) * 16; - - case VK_FORMAT_BC3_UNORM_BLOCK: - return static_cast(std::max(1u, row_length / 4)) * 16; - - case VK_FORMAT_R8G8B8A8_UNORM: - case VK_FORMAT_B8G8R8A8_UNORM: - case VK_FORMAT_R32_SFLOAT: - case VK_FORMAT_D32_SFLOAT: - return static_cast(row_length) * 4; - - default: - PanicAlert("Unhandled pixel format"); - return row_length; - } -} - VkRect2D ClampRect2D(const VkRect2D& rect, u32 width, u32 height) { VkRect2D out; -- cgit v1.2.3