From 7cdb1c3983b683764ac6c60e3934cb06d20d6912 Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Fri, 8 Oct 2021 08:36:50 +0200 Subject: [PATCH] early-access version 2117 --- README.md | 2 +- src/video_core/command_classes/vic.cpp | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fd18d45f7..7a2d1eb91 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 2116. +This is the source code for early-access 2117. ## Legal Notice diff --git a/src/video_core/command_classes/vic.cpp b/src/video_core/command_classes/vic.cpp index 3f2712a8d..51f739801 100755 --- a/src/video_core/command_classes/vic.cpp +++ b/src/video_core/command_classes/vic.cpp @@ -85,6 +85,15 @@ void Vic::Execute() { if (!frame) { return; } + const u64 surface_width = config.surface_width_minus1 + 1; + const u64 surface_height = config.surface_height_minus1 + 1; + if (static_cast(frame->width) != surface_width || + static_cast(frame->height) != surface_height) { + // TODO: Properly support multiple video streams with differing frame dimensions + LOG_WARNING(Debug, "Frame dimensions {}x{} do not match expected surface dimensions {}x{}", + frame->width, frame->height, surface_width, surface_height); + return; + } switch (config.pixel_format) { case VideoPixelFormat::RGBA8: case VideoPixelFormat::BGRA8: