diff options
| author | bunnei <bunneidev@gmail.com> | 2023-02-12 00:18:52 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-12 00:18:52 -0800 |
| commit | f70fcdb873f768403af37622fbc195433b3605ef (patch) | |
| tree | b1fbe289c78b39bde41e7a895d8e172d4f3a1927 /src/video_core/texture_cache/util.cpp | |
| parent | fbba6e10bc421aa3a3dc91282814e4d18ac8eb92 (diff) | |
| parent | 93cf2b3ca8edeb1e8f1e00182f920b8d50664ed5 (diff) | |
Merge pull request #9746 from ameerj/ogl-msaa-texcache
texture_cache: OpenGL: Implement MSAA uploads and copies
Diffstat (limited to 'src/video_core/texture_cache/util.cpp')
| -rw-r--r-- | src/video_core/texture_cache/util.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/video_core/texture_cache/util.cpp b/src/video_core/texture_cache/util.cpp index 03acc68d9..697f86641 100644 --- a/src/video_core/texture_cache/util.cpp +++ b/src/video_core/texture_cache/util.cpp @@ -573,10 +573,6 @@ u32 CalculateUnswizzledSizeBytes(const ImageInfo& info) noexcept { if (info.type == ImageType::Buffer) { return info.size.width * BytesPerBlock(info.format); } - if (info.num_samples > 1) { - // Multisample images can't be uploaded or downloaded to the host - return 0; - } if (info.type == ImageType::Linear) { return info.pitch * Common::DivCeil(info.size.height, DefaultBlockHeight(info.format)); } @@ -703,7 +699,6 @@ ImageViewType RenderTargetImageViewType(const ImageInfo& info) noexcept { std::vector<ImageCopy> MakeShrinkImageCopies(const ImageInfo& dst, const ImageInfo& src, SubresourceBase base, u32 up_scale, u32 down_shift) { ASSERT(dst.resources.levels >= src.resources.levels); - ASSERT(dst.num_samples == src.num_samples); const bool is_dst_3d = dst.type == ImageType::e3D; if (is_dst_3d) { |
