From fb42cf56ae67f914e4b041e902f839345a7768b5 Mon Sep 17 00:00:00 2001 From: lizzie Date: Wed, 28 Jan 2026 05:26:25 +0000 Subject: [PATCH] [vic] crash fix in Big Brain Academy due to non-destructive resizing of scratch buffers Signed-off-by: lizzie --- src/video_core/host1x/vic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video_core/host1x/vic.cpp b/src/video_core/host1x/vic.cpp index 94c12ff533..a273c6a09c 100644 --- a/src/video_core/host1x/vic.cpp +++ b/src/video_core/host1x/vic.cpp @@ -117,7 +117,7 @@ void Vic::Execute() noexcept { auto output_width = config.output_surface_config.out_surface_width + 1; auto output_height = config.output_surface_config.out_surface_height + 1; - output_surface.resize(output_width * output_height); + output_surface.resize_destructive(output_width * output_height); if (Settings::values.nvdec_emulation.GetValue() != Settings::NvdecEmulation::Off) { for (size_t i = 0; i < config.slot_structs.size(); i++) { @@ -365,7 +365,7 @@ void Vic::ReadInterlacedY8__V8U8_N420(const SlotStruct& slot, std::spanGetWidth(), s32(out_luma_width)); [[maybe_unused]] auto const in_luma_height = (std::min)(frame->GetHeight(), s32(out_luma_height));