summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache/image_info.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2023-01-28 03:29:03 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2023-01-28 06:15:29 +0100
commitc2fb7b64ce8abe720cc6a4863559944c8cc7e7f7 (patch)
tree5ac2cb86dace493ebb993678acb34797f99392fb /src/video_core/texture_cache/image_info.cpp
parentMerge pull request #9685 from liamwhite/minmax (diff)
downloadyuzu-c2fb7b64ce8abe720cc6a4863559944c8cc7e7f7.tar
yuzu-c2fb7b64ce8abe720cc6a4863559944c8cc7e7f7.tar.gz
yuzu-c2fb7b64ce8abe720cc6a4863559944c8cc7e7f7.tar.bz2
yuzu-c2fb7b64ce8abe720cc6a4863559944c8cc7e7f7.tar.lz
yuzu-c2fb7b64ce8abe720cc6a4863559944c8cc7e7f7.tar.xz
yuzu-c2fb7b64ce8abe720cc6a4863559944c8cc7e7f7.tar.zst
yuzu-c2fb7b64ce8abe720cc6a4863559944c8cc7e7f7.zip
Diffstat (limited to '')
-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);