diff options
| author | 2021-08-04 19:02:30 -0400 | |
|---|---|---|
| committer | 2021-11-16 22:11:29 +0100 | |
| commit | ed675cfd8cc89d64c763becfd991d1dd40deac5a (patch) | |
| tree | 681f48aef46418610d4bce31cdbee87885bb5902 /src | |
| parent | emit_spirv: Fix RescalingLayout alignment (diff) | |
| download | yuzu-ed675cfd8cc89d64c763becfd991d1dd40deac5a.tar.gz yuzu-ed675cfd8cc89d64c763becfd991d1dd40deac5a.tar.xz yuzu-ed675cfd8cc89d64c763becfd991d1dd40deac5a.zip | |
texture_cache: Disable dst_image scaling in BlitImage
Fixes scaling in Super Mario Party
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 0e70c4db2..d86f80b5d 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h | |||
| @@ -478,11 +478,13 @@ void TextureCache<P>::BlitImage(const Tegra::Engines::Fermi2D::Surface& dst, | |||
| 478 | const bool is_src_rescaled = True(src_image.flags & ImageFlagBits::Rescaled); | 478 | const bool is_src_rescaled = True(src_image.flags & ImageFlagBits::Rescaled); |
| 479 | bool is_dst_rescaled = True(dst_image.flags & ImageFlagBits::Rescaled); | 479 | bool is_dst_rescaled = True(dst_image.flags & ImageFlagBits::Rescaled); |
| 480 | 480 | ||
| 481 | if (is_src_rescaled && !is_dst_rescaled) { | 481 | // TODO: This requires the rendertarget image views to be updated with the upscaled sizes, |
| 482 | if (ImageCanRescale(dst_image)) { | 482 | // otherwise the blit will use a larger framebuffer size than the image view attachment. |
| 483 | is_dst_rescaled = dst_image.ScaleUp(); | 483 | // if (is_src_rescaled && !is_dst_rescaled) { |
| 484 | } | 484 | // if (ImageCanRescale(dst_image)) { |
| 485 | } | 485 | // is_dst_rescaled = dst_image.ScaleUp(); |
| 486 | // } | ||
| 487 | // } | ||
| 486 | 488 | ||
| 487 | const auto& resolution = Settings::values.resolution_info; | 489 | const auto& resolution = Settings::values.resolution_info; |
| 488 | const auto scale_up = [&](u32 value) -> u32 { | 490 | const auto scale_up = [&](u32 value) -> u32 { |