diff options
| author | bunnei <bunneidev@gmail.com> | 2023-01-28 23:47:45 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-28 23:47:45 -0800 |
| commit | a3aedcce65959d846733fec1128fbe89fc205d02 (patch) | |
| tree | 1ba6236c83d61a911199bf1381a65881424d0537 /src/video_core/texture_cache/image_info.cpp | |
| parent | 236f591bde7450d5f78df282a8d23ed19c3a14c9 (diff) | |
| parent | c2fb7b64ce8abe720cc6a4863559944c8cc7e7f7 (diff) | |
Merge pull request #9691 from ameerj/msaa-texcache
texture_cache: Fix tracking of MSAA image views
Diffstat (limited to 'src/video_core/texture_cache/image_info.cpp')
| -rw-r--r-- | src/video_core/texture_cache/image_info.cpp | 4 |
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); |
