diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-09-14 06:45:50 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:30 +0100 |
commit | 6000fe69a4b2805a48ce045d9a383fda27d5e57b (patch) | |
tree | 9709b9a66749cb446f6092a9ae9c71deed7ad9e3 /src | |
parent | bootmanager: Fix screenshot resolution factor usage (diff) | |
download | yuzu-6000fe69a4b2805a48ce045d9a383fda27d5e57b.tar yuzu-6000fe69a4b2805a48ce045d9a383fda27d5e57b.tar.gz yuzu-6000fe69a4b2805a48ce045d9a383fda27d5e57b.tar.bz2 yuzu-6000fe69a4b2805a48ce045d9a383fda27d5e57b.tar.lz yuzu-6000fe69a4b2805a48ce045d9a383fda27d5e57b.tar.xz yuzu-6000fe69a4b2805a48ce045d9a383fda27d5e57b.tar.zst yuzu-6000fe69a4b2805a48ce045d9a383fda27d5e57b.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/texture_cache/image_info.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/image_info.cpp b/src/video_core/texture_cache/image_info.cpp index 7fa8fd4fe..bdf306bf9 100644 --- a/src/video_core/texture_cache/image_info.cpp +++ b/src/video_core/texture_cache/image_info.cpp @@ -101,7 +101,7 @@ ImageInfo::ImageInfo(const TICEntry& config) noexcept { // FIXME: Call this without passing *this layer_stride = CalculateLayerStride(*this); maybe_unaligned_layer_stride = CalculateLayerSize(*this); - rescaleable &= (block.depth == 0) && resources.levels == 1; + rescaleable &= (block.depth == 0) && resources.levels == 1 && num_samples == 1; } } @@ -134,7 +134,7 @@ ImageInfo::ImageInfo(const Tegra::Engines::Maxwell3D::Regs& regs, size_t index) type = ImageType::e3D; size.depth = rt.depth; } else { - rescaleable = block.depth == 0 && size.height > 256; + rescaleable = block.depth == 0 && size.height > 256 && num_samples == 1; type = ImageType::e2D; resources.layers = rt.depth; } |