From 9d4b19b97a9ec3f1aaf435d55f32b625697f7fcd Mon Sep 17 00:00:00 2001 From: kd-11 Date: Mon, 28 Jan 2019 20:20:12 +0300 Subject: [PATCH] vk: Increase number of draw calls per frame for overlays to 1024 - Allows for more complex interface design --- rpcs3/Emu/RSX/VK/VKOverlays.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rpcs3/Emu/RSX/VK/VKOverlays.h b/rpcs3/Emu/RSX/VK/VKOverlays.h index 399a5e21a7..b228397fbc 100644 --- a/rpcs3/Emu/RSX/VK/VKOverlays.h +++ b/rpcs3/Emu/RSX/VK/VKOverlays.h @@ -6,6 +6,8 @@ #include "../Overlays/overlays.h" +#define VK_OVERLAY_MAX_DRAW_CALLS 1024 + namespace vk { //TODO: Refactor text print class to inherit from this base class @@ -67,8 +69,8 @@ namespace vk { VkDescriptorPoolSize descriptor_pool_sizes[2] = { - { VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 120 * m_num_usable_samplers }, - { VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 120 }, + { VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, VK_OVERLAY_MAX_DRAW_CALLS * m_num_usable_samplers }, + { VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, VK_OVERLAY_MAX_DRAW_CALLS }, }; //Reserve descriptor pools @@ -226,7 +228,7 @@ namespace vk else program = build_pipeline(pass); - verify(HERE), m_used_descriptors < 120; + verify(HERE), m_used_descriptors < VK_OVERLAY_MAX_DRAW_CALLS; VkDescriptorSetAllocateInfo alloc_info = {}; alloc_info.descriptorPool = m_descriptor_pool;