From 8b6b58a36481b910acf31e2576166bd2fbb2c059 Mon Sep 17 00:00:00 2001 From: Steveice10 <1269164+Steveice10@users.noreply.github.com> Date: Sat, 15 Jul 2023 01:57:06 -0700 Subject: [PATCH] y2r: Pass ConversionConfiguration by copying. (#6690) --- src/core/hw/y2r.cpp | 2 +- src/core/hw/y2r.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/hw/y2r.cpp b/src/core/hw/y2r.cpp index 25a0ff3831..45bc04fd16 100644 --- a/src/core/hw/y2r.cpp +++ b/src/core/hw/y2r.cpp @@ -260,7 +260,7 @@ static void WriteTileToOutput(u32* output, const ImageTile& tile, int height, in * Hardware behaves strangely (doesn't fire the completion interrupt, for example) in these cases, * so they are believed to be invalid configurations anyway. */ -void PerformConversion(Memory::MemorySystem& memory, ConversionConfiguration& cvt) { +void PerformConversion(Memory::MemorySystem& memory, ConversionConfiguration cvt) { ASSERT(cvt.input_line_width % 8 == 0); ASSERT(cvt.block_alignment != BlockAlignment::Block8x8 || cvt.input_lines % 8 == 0); // Tiles per row diff --git a/src/core/hw/y2r.h b/src/core/hw/y2r.h index c971a50302..2091773e17 100644 --- a/src/core/hw/y2r.h +++ b/src/core/hw/y2r.h @@ -13,5 +13,5 @@ struct ConversionConfiguration; } // namespace Service::Y2R namespace HW::Y2R { -void PerformConversion(Memory::MemorySystem& memory, Service::Y2R::ConversionConfiguration& cvt); +void PerformConversion(Memory::MemorySystem& memory, Service::Y2R::ConversionConfiguration cvt); } // namespace HW::Y2R