From 1d58a0403e26805e21518f31d8caea6ce2299018 Mon Sep 17 00:00:00 2001 From: DanielSvoboda Date: Thu, 4 Jul 2024 18:16:06 -0300 Subject: [PATCH] Fix ShowSplash size (#235) * Fix ShowSplash size * enable isShowSplash --- src/common/config.cpp | 2 +- src/video_core/renderer_vulkan/renderer_vulkan.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/config.cpp b/src/common/config.cpp index a577b143..f23b9d65 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -18,7 +18,7 @@ static std::string logFilter; static std::string logType = "sync"; static bool isDebugDump = false; static bool isLibc = true; -static bool isShowSplash = false; +static bool isShowSplash = true; static bool isNullGpu = false; static bool shouldDumpShaders = false; static bool shouldDumpPM4 = false; diff --git a/src/video_core/renderer_vulkan/renderer_vulkan.cpp b/src/video_core/renderer_vulkan/renderer_vulkan.cpp index a2b8892c..6d498c75 100644 --- a/src/video_core/renderer_vulkan/renderer_vulkan.cpp +++ b/src/video_core/renderer_vulkan/renderer_vulkan.cpp @@ -181,7 +181,7 @@ bool RendererVulkan::ShowSplash(Frame* frame /*= nullptr*/) { info.type = vk::ImageType::e2D; info.size = VideoCore::Extent3D{splash->GetImageInfo().width, splash->GetImageInfo().height, 1}; - info.pitch = splash->GetImageInfo().width * 4; + info.pitch = splash->GetImageInfo().width; info.guest_size_bytes = splash->GetImageData().size(); splash_img.emplace(instance, scheduler, info, VAddr(splash->GetImageData().data())); texture_cache.RefreshImage(*splash_img);