yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

texture_cache: Disable dst_image scaling in BlitImage

Fixes scaling in Super Mario Party
This commit is contained in:
ameerj 2021-08-04 19:02:30 -04:00 committed by Fernando Sahmkow
parent dc28284437
commit ed675cfd8c
1 changed files with 7 additions and 5 deletions

View File

@ -478,11 +478,13 @@ void TextureCache<P>::BlitImage(const Tegra::Engines::Fermi2D::Surface& dst,
const bool is_src_rescaled = True(src_image.flags & ImageFlagBits::Rescaled); const bool is_src_rescaled = True(src_image.flags & ImageFlagBits::Rescaled);
bool is_dst_rescaled = True(dst_image.flags & ImageFlagBits::Rescaled); bool is_dst_rescaled = True(dst_image.flags & ImageFlagBits::Rescaled);
if (is_src_rescaled && !is_dst_rescaled) { // TODO: This requires the rendertarget image views to be updated with the upscaled sizes,
if (ImageCanRescale(dst_image)) { // otherwise the blit will use a larger framebuffer size than the image view attachment.
is_dst_rescaled = dst_image.ScaleUp(); // if (is_src_rescaled && !is_dst_rescaled) {
} // if (ImageCanRescale(dst_image)) {
} // is_dst_rescaled = dst_image.ScaleUp();
// }
// }
const auto& resolution = Settings::values.resolution_info; const auto& resolution = Settings::values.resolution_info;
const auto scale_up = [&](u32 value) -> u32 { const auto scale_up = [&](u32 value) -> u32 {