Fix ShowSplash size (#235)

* Fix ShowSplash size

* enable isShowSplash
This commit is contained in:
DanielSvoboda 2024-07-04 18:16:06 -03:00 committed by GitHub
parent dd97b517f7
commit 1d58a0403e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ static std::string logFilter;
static std::string logType = "sync"; static std::string logType = "sync";
static bool isDebugDump = false; static bool isDebugDump = false;
static bool isLibc = true; static bool isLibc = true;
static bool isShowSplash = false; static bool isShowSplash = true;
static bool isNullGpu = false; static bool isNullGpu = false;
static bool shouldDumpShaders = false; static bool shouldDumpShaders = false;
static bool shouldDumpPM4 = false; static bool shouldDumpPM4 = false;

View File

@ -181,7 +181,7 @@ bool RendererVulkan::ShowSplash(Frame* frame /*= nullptr*/) {
info.type = vk::ImageType::e2D; info.type = vk::ImageType::e2D;
info.size = info.size =
VideoCore::Extent3D{splash->GetImageInfo().width, splash->GetImageInfo().height, 1}; 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(); info.guest_size_bytes = splash->GetImageData().size();
splash_img.emplace(instance, scheduler, info, VAddr(splash->GetImageData().data())); splash_img.emplace(instance, scheduler, info, VAddr(splash->GetImageData().data()));
texture_cache.RefreshImage(*splash_img); texture_cache.RefreshImage(*splash_img);