summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache/image_info.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-01-29 08:47:45 +0100
committerGitHub <noreply@github.com>2023-01-29 08:47:45 +0100
commita3aedcce65959d846733fec1128fbe89fc205d02 (patch)
tree1ba6236c83d61a911199bf1381a65881424d0537 /src/video_core/texture_cache/image_info.cpp
parentMerge pull request #9690 from german77/whoops (diff)
parenttexture_cache: Adjust image view sizes by MSAA samples (diff)
downloadyuzu-a3aedcce65959d846733fec1128fbe89fc205d02.tar
yuzu-a3aedcce65959d846733fec1128fbe89fc205d02.tar.gz
yuzu-a3aedcce65959d846733fec1128fbe89fc205d02.tar.bz2
yuzu-a3aedcce65959d846733fec1128fbe89fc205d02.tar.lz
yuzu-a3aedcce65959d846733fec1128fbe89fc205d02.tar.xz
yuzu-a3aedcce65959d846733fec1128fbe89fc205d02.tar.zst
yuzu-a3aedcce65959d846733fec1128fbe89fc205d02.zip
Diffstat (limited to 'src/video_core/texture_cache/image_info.cpp')
-rw-r--r--src/video_core/texture_cache/image_info.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/image_info.cpp b/src/video_core/texture_cache/image_info.cpp
index 852ec2519..e9100091e 100644
--- a/src/video_core/texture_cache/image_info.cpp
+++ b/src/video_core/texture_cache/image_info.cpp
@@ -100,6 +100,10 @@ ImageInfo::ImageInfo(const TICEntry& config) noexcept {
ASSERT_MSG(false, "Invalid texture_type={}", static_cast<int>(config.texture_type.Value()));
break;
}
+ if (num_samples > 1) {
+ size.width *= NumSamplesX(config.msaa_mode);
+ size.height *= NumSamplesY(config.msaa_mode);
+ }
if (type != ImageType::Linear) {
// FIXME: Call this without passing *this
layer_stride = CalculateLayerStride(*this);