From e31859a5edd635ae06efe20d3cf3a2afc433a7f9 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Thu, 14 Sep 2023 21:09:14 +0300 Subject: [PATCH] vk: Remove debug visualization code --- rpcs3/Emu/RSX/VK/VKPresent.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/rpcs3/Emu/RSX/VK/VKPresent.cpp b/rpcs3/Emu/RSX/VK/VKPresent.cpp index 4cbf0a9065..2f69505b96 100644 --- a/rpcs3/Emu/RSX/VK/VKPresent.cpp +++ b/rpcs3/Emu/RSX/VK/VKPresent.cpp @@ -14,11 +14,6 @@ extern atomic_t g_user_asked_for_screenshot; extern atomic_t g_recording_mode; -namespace vk -{ - u32 g_debug_vis_address = 0; -} - void VKGSRender::reinitialize_swapchain() { m_swapchain_dims.width = m_frame->client_width(); @@ -482,18 +477,7 @@ void VKGSRender::flip(const rsx::display_flip_info_t& info) present_info.format = av_format; present_info.address = rsx::get_address(display_buffers[info.buffer].offset, CELL_GCM_LOCATION_LOCAL); - if (vk::g_debug_vis_address) - { - //std::vector temp_data(5120 * 1024); - //std::memcpy(temp_data.data(), vm::get_super_ptr(vk::g_debug_vis_address), 5120 * 1024); - //rsx::untile_texel_data(vm::get_super_ptr(vk::g_debug_vis_address), temp_data.data(), vk::g_debug_vis_address, 0, 0, 5120, 1280, 720); - image_to_flip = m_texture_cache.upload_image_simple(*m_current_command_buffer, VK_FORMAT_B8G8R8A8_UNORM, vk::g_debug_vis_address, 1280, 720, 5120); - vk::g_debug_vis_address = 0; - } - else - { - image_to_flip = get_present_source(&present_info, avconfig); - } + image_to_flip = get_present_source(&present_info, avconfig); if (avconfig.stereo_mode != stereo_render_mode_options::disabled) [[unlikely]] {