From f0a3dff136b5fd872c66059cbce779b19515981f Mon Sep 17 00:00:00 2001 From: Mary Date: Mon, 27 Mar 2023 04:16:31 +0200 Subject: [PATCH] vulkan: Remove CreateCommandBufferPool from VulkanInitialization (#4606) It was only called in one place, that can be simplified. --- Ryujinx.Graphics.Vulkan/VulkanInitialization.cs | 5 ----- Ryujinx.Graphics.Vulkan/VulkanRenderer.cs | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Ryujinx.Graphics.Vulkan/VulkanInitialization.cs b/Ryujinx.Graphics.Vulkan/VulkanInitialization.cs index ba3b5ef656..0bb8260a32 100644 --- a/Ryujinx.Graphics.Vulkan/VulkanInitialization.cs +++ b/Ryujinx.Graphics.Vulkan/VulkanInitialization.cs @@ -672,11 +672,6 @@ namespace Ryujinx.Graphics.Vulkan return extensionProperties.Select(x => Marshal.PtrToStringAnsi((IntPtr)x.ExtensionName)).ToArray(); } - internal static CommandBufferPool CreateCommandBufferPool(Vk api, Device device, Queue queue, object queueLock, uint queueFamilyIndex) - { - return new CommandBufferPool(api, device, queue, queueLock, queueFamilyIndex); - } - internal unsafe static void CreateDebugMessenger( Vk api, GraphicsDebugLevel logLevel, diff --git a/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs b/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs index cbee37470a..d8cb5e2b6a 100644 --- a/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs +++ b/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs @@ -320,7 +320,7 @@ namespace Ryujinx.Graphics.Vulkan MemoryAllocator = new MemoryAllocator(Api, _physicalDevice, _device, properties.Limits.MaxMemoryAllocationCount); - CommandBufferPool = VulkanInitialization.CreateCommandBufferPool(Api, _device, Queue, QueueLock, queueFamilyIndex); + CommandBufferPool = new CommandBufferPool(Api, _device, Queue, QueueLock, queueFamilyIndex); DescriptorSetManager = new DescriptorSetManager(_device);