From b782497755d42bfe2281fcbcc7f34e1857a7cf0d Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Sun, 7 Dec 2025 22:28:17 -0300 Subject: [PATCH] [vk] Fix identation Signed-off-by: Caio Oliveira --- .../renderer_vulkan/vk_graphics_pipeline.cpp | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp index f2babe7b4b..aa84564751 100644 --- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp +++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp @@ -519,19 +519,14 @@ void GraphicsPipeline::ConfigureDraw(const RescalingPushConstant& rescaling, // allocate/bind descriptor set and only update if needed VkDescriptorSet descriptor_set = VK_NULL_HANDLE; bool needs_update = false; - if (descriptor_set_layout) { - if (uses_push_descriptor) { - // handled below via push descriptor - } else { - descriptor_set = descriptor_allocator.CommitWithTracking(current_frame_number, descriptor_data); - needs_update = descriptor_allocator.NeedsUpdate(descriptor_set, current_frame_number, descriptor_data); - if (needs_update) { - const vk::Device& dev{device.GetLogical()}; - dev.UpdateDescriptorSet(descriptor_set, *descriptor_update_template, descriptor_data); - } else { - } - } + if (descriptor_set_layout && !uses_push_descriptor) { + descriptor_set = descriptor_allocator.CommitWithTracking(current_frame_number, descriptor_data); + needs_update = descriptor_allocator.NeedsUpdate(descriptor_set, current_frame_number, descriptor_data); + if (needs_update) { + const vk::Device& dev{device.GetLogical()}; + dev.UpdateDescriptorSet(descriptor_set, *descriptor_update_template, descriptor_data); } + } scheduler.Record([this, descriptor_data, descriptor_set, bind_pipeline, rescaling_data = rescaling.Data(), is_rescaling, update_rescaling, @@ -559,7 +554,7 @@ void GraphicsPipeline::ConfigureDraw(const RescalingPushConstant& rescaling, return; } if (uses_push_descriptor) { - cmdbuf.PushDescriptorSetWithTemplateKHR(*descriptor_update_template, *pipeline_layout, 0, descriptor_data); + cmdbuf.PushDescriptorSetWithTemplateKHR(*descriptor_update_template, *pipeline_layout, 0, descriptor_data); } else { cmdbuf.BindDescriptorSets(VK_PIPELINE_BIND_POINT_GRAPHICS, *pipeline_layout, 0, descriptor_set, nullptr);