mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-22 19:34:59 +00:00
vk_presenter: Fix splash issues. (#2180)
This commit is contained in:
parent
d361579618
commit
c80151adde
1 changed files with 2 additions and 1 deletions
|
@ -476,7 +476,7 @@ bool Presenter::ShowSplash(Frame* frame /*= nullptr*/) {
|
||||||
if (!frame) {
|
if (!frame) {
|
||||||
if (!splash_img.has_value()) {
|
if (!splash_img.has_value()) {
|
||||||
VideoCore::ImageInfo info{};
|
VideoCore::ImageInfo info{};
|
||||||
info.pixel_format = vk::Format::eR8G8B8A8Srgb;
|
info.pixel_format = vk::Format::eR8G8B8A8Unorm;
|
||||||
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};
|
||||||
|
@ -487,6 +487,7 @@ bool Presenter::ShowSplash(Frame* frame /*= nullptr*/) {
|
||||||
splash->GetImageInfo().width,
|
splash->GetImageInfo().width,
|
||||||
splash->GetImageInfo().height, 0);
|
splash->GetImageInfo().height, 0);
|
||||||
splash_img.emplace(instance, present_scheduler, info);
|
splash_img.emplace(instance, present_scheduler, info);
|
||||||
|
splash_img->flags &= ~VideoCore::GpuDirty;
|
||||||
texture_cache.RefreshImage(*splash_img);
|
texture_cache.RefreshImage(*splash_img);
|
||||||
|
|
||||||
splash_img->Transit(vk::ImageLayout::eTransferSrcOptimal,
|
splash_img->Transit(vk::ImageLayout::eTransferSrcOptimal,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue