From 37425d6fcdd5a3139489bf19b8f475759cdc7d1d Mon Sep 17 00:00:00 2001 From: Megamouse Date: Thu, 29 Apr 2021 20:18:47 +0200 Subject: [PATCH] GL: Remove unused copy functions --- rpcs3/Emu/RSX/GL/GLGSRender.h | 3 --- rpcs3/Emu/RSX/GL/GLRenderTargets.cpp | 10 ---------- rpcs3/Emu/RSX/RSXThread.h | 16 ---------------- 3 files changed, 29 deletions(-) diff --git a/rpcs3/Emu/RSX/GL/GLGSRender.h b/rpcs3/Emu/RSX/GL/GLGSRender.h index 07cbd4a7f8..1ad11c3350 100644 --- a/rpcs3/Emu/RSX/GL/GLGSRender.h +++ b/rpcs3/Emu/RSX/GL/GLGSRender.h @@ -194,7 +194,4 @@ protected: void on_invalidate_memory_range(const utils::address_range &range, rsx::invalidation_cause cause) override; void notify_tile_unbound(u32 tile) override; void on_semaphore_acquire_wait() override; - - std::array, 4> copy_render_targets_to_memory() override; - std::array, 2> copy_depth_stencil_buffer_to_memory() override; }; diff --git a/rpcs3/Emu/RSX/GL/GLRenderTargets.cpp b/rpcs3/Emu/RSX/GL/GLRenderTargets.cpp index cad9529c99..334ce8e436 100644 --- a/rpcs3/Emu/RSX/GL/GLRenderTargets.cpp +++ b/rpcs3/Emu/RSX/GL/GLRenderTargets.cpp @@ -394,16 +394,6 @@ void GLGSRender::init_buffers(rsx::framebuffer_creation_context context, bool /* } } -std::array, 4> GLGSRender::copy_render_targets_to_memory() -{ - return {}; -} - -std::array, 2> GLGSRender::copy_depth_stencil_buffer_to_memory() -{ - return {}; -} - // Render target helpers void gl::render_target::clear_memory(gl::command_context& cmd) { diff --git a/rpcs3/Emu/RSX/RSXThread.h b/rpcs3/Emu/RSX/RSXThread.h index d4923e6503..a8ac37c164 100644 --- a/rpcs3/Emu/RSX/RSXThread.h +++ b/rpcs3/Emu/RSX/RSXThread.h @@ -932,22 +932,6 @@ namespace rsx */ virtual void on_semaphore_acquire_wait() {} - /** - * Copy rtt values to buffer. - * TODO: It's more efficient to combine multiple call of this function into one. - */ - virtual std::array, 4> copy_render_targets_to_memory() { - return std::array, 4>(); - } - - /** - * Copy depth and stencil content to buffers. - * TODO: It's more efficient to combine multiple call of this function into one. - */ - virtual std::array, 2> copy_depth_stencil_buffer_to_memory() { - return std::array, 2>(); - } - virtual std::pair get_programs() const { return std::make_pair("", ""); } virtual bool scaled_image_from_memory(blit_src_info& /*src_info*/, blit_dst_info& /*dst_info*/, bool /*interpolate*/) { return false; }