From f981e05908cc8f116c667e180414397553fb4ed0 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Fri, 19 Aug 2022 22:02:04 +0300 Subject: [PATCH] rsx: Do not lie about surface details --- rpcs3/Emu/RSX/GL/GLRenderTargets.h | 9 ++++----- rpcs3/Emu/RSX/VK/VKRenderTargets.h | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/rpcs3/Emu/RSX/GL/GLRenderTargets.h b/rpcs3/Emu/RSX/GL/GLRenderTargets.h index e837ed84af..7cf3a3ef29 100644 --- a/rpcs3/Emu/RSX/GL/GLRenderTargets.h +++ b/rpcs3/Emu/RSX/GL/GLRenderTargets.h @@ -240,10 +240,9 @@ struct gl_render_target_traits std::unique_ptr convert_pitch( gl::command_context& /*cmd*/, std::unique_ptr& src, - usz out_pitch) + usz /*out_pitch*/) { // TODO - src->set_rsx_pitch(static_cast(out_pitch)); src->state_flags = rsx::surface_state_flags::erase_bkgnd; return {}; } @@ -348,19 +347,19 @@ struct gl_render_target_traits } static - void spill_buffer(std::unique_ptr& bo) + void spill_buffer(std::unique_ptr& /*bo*/) { // TODO } static - void unspill_buffer(std::unique_ptr& bo) + void unspill_buffer(std::unique_ptr& /*bo*/) { // TODO } static - gl::buffer* merge_bo_list(const std::vector& list) + gl::buffer* merge_bo_list(const std::vector& /*list*/) { // TODO return nullptr; diff --git a/rpcs3/Emu/RSX/VK/VKRenderTargets.h b/rpcs3/Emu/RSX/VK/VKRenderTargets.h index 68c3ae20e5..7d08eea253 100644 --- a/rpcs3/Emu/RSX/VK/VKRenderTargets.h +++ b/rpcs3/Emu/RSX/VK/VKRenderTargets.h @@ -335,10 +335,9 @@ namespace vk static std::unique_ptr convert_pitch( vk::command_buffer& /*cmd*/, std::unique_ptr& src, - usz out_pitch) + usz /*out_pitch*/) { // TODO - src->rsx_pitch = static_cast(out_pitch); src->state_flags = rsx::surface_state_flags::erase_bkgnd; return {}; } @@ -454,17 +453,17 @@ namespace vk return int_surface_matches_properties(surface, vk_format, width, height, antialias, check_refs); } - static void spill_buffer(std::unique_ptr& bo) + static void spill_buffer(std::unique_ptr& /*bo*/) { // TODO } - static void unspill_buffer(std::unique_ptr& bo) + static void unspill_buffer(std::unique_ptr& /*bo*/) { // TODO } - static vk::buffer* merge_bo_list(const std::vector& list) + static vk::buffer* merge_bo_list(const std::vector& /*list*/) { // TODO return nullptr;