From a06aa7981e82fe4102eb062d2cd90b6d8125a631 Mon Sep 17 00:00:00 2001 From: Reg Tiangha Date: Sun, 14 Apr 2024 06:38:30 -0600 Subject: [PATCH] vk_texture_runtime.cpp: remove outdated references --- src/video_core/renderer_vulkan/vk_texture_runtime.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/video_core/renderer_vulkan/vk_texture_runtime.cpp b/src/video_core/renderer_vulkan/vk_texture_runtime.cpp index 2d8597733..1b9728c1e 100644 --- a/src/video_core/renderer_vulkan/vk_texture_runtime.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_runtime.cpp @@ -733,8 +733,8 @@ Surface::Surface(TextureRuntime& runtime_, const VideoCore::SurfaceParams& param } runtime->render_manager.EndRendering(); - scheduler->Record([raw_images, num_images, aspect = traits.aspect](vk::CommandBuffer cmdbuf) { - const auto barriers = MakeInitBarriers(aspect, raw_images, num_images); + scheduler->Record([raw_images, aspect = traits.aspect](vk::CommandBuffer cmdbuf) { + const auto barriers = MakeInitBarriers(aspect, raw_images); cmdbuf.pipelineBarrier(vk::PipelineStageFlagBits::eTopOfPipe, vk::PipelineStageFlagBits::eTopOfPipe, vk::DependencyFlagBits::eByRegion, {}, {}, barriers); @@ -777,8 +777,8 @@ Surface::Surface(TextureRuntime& runtime_, const VideoCore::SurfaceBase& surface } runtime->render_manager.EndRendering(); - scheduler->Record([raw_images, num_images, aspect = traits.aspect](vk::CommandBuffer cmdbuf) { - const auto barriers = MakeInitBarriers(aspect, raw_images, num_images); + scheduler->Record([raw_images, aspect = traits.aspect](vk::CommandBuffer cmdbuf) { + const auto barriers = MakeInitBarriers(aspect, raw_images); cmdbuf.pipelineBarrier(vk::PipelineStageFlagBits::eTopOfPipe, vk::PipelineStageFlagBits::eTopOfPipe, vk::DependencyFlagBits::eByRegion, {}, {}, barriers); @@ -1491,8 +1491,7 @@ Framebuffer::Framebuffer(TextureRuntime& runtime, const VideoCore::FramebufferPa color->GetScaledHeight(), {}); } else { render_pass = render_manager.GetRenderpass(formats[0], formats[1], false); - framebuffer = - MakeFramebuffer(device, render_pass, width, height, attachments, num_attachments); + framebuffer = MakeFramebuffer(device, render_pass, width, height, attachments); } }