summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lioncash2022-02-02 14:10:06 -0500
committerGravatar Lioncash2022-02-02 14:37:22 -0500
commit7367e55d1de57cb3f728085cbd0b3393a369150e (patch)
tree1beb0763235a4aaefed046a2e0be16121bd47a3f
parenttexture_cache: Amend unintended bitwise OR in SynchronizeAliases (diff)
downloadyuzu-7367e55d1de57cb3f728085cbd0b3393a369150e.tar.gz
yuzu-7367e55d1de57cb3f728085cbd0b3393a369150e.tar.xz
yuzu-7367e55d1de57cb3f728085cbd0b3393a369150e.zip
texture_cache: Remove dead code within SynchronizeAliases
Since these were being copied by value, none of the changes applied in the loop would be reflected. However, from the looks of it, this would already be applied within CopyImage() anyways, so this can be removed.
-rw-r--r--src/video_core/texture_cache/texture_cache.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index bc45720b6..d57c0c41a 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -1736,19 +1736,7 @@ void TextureCache<P>::SynchronizeAliases(ImageId image_id) {
1736 continue; 1736 continue;
1737 } 1737 }
1738 ScaleUp(aliased_image); 1738 ScaleUp(aliased_image);
1739 1739 CopyImage(image_id, aliased->id, aliased->copies);
1740 const bool both_2d{image.info.type == ImageType::e2D &&
1741 aliased_image.info.type == ImageType::e2D};
1742 auto copies = aliased->copies;
1743 for (auto copy : copies) {
1744 copy.extent.width = std::max<u32>(
1745 (copy.extent.width * resolution.up_scale) >> resolution.down_shift, 1);
1746 if (both_2d) {
1747 copy.extent.height = std::max<u32>(
1748 (copy.extent.height * resolution.up_scale) >> resolution.down_shift, 1);
1749 }
1750 }
1751 CopyImage(image_id, aliased->id, copies);
1752 } 1740 }
1753} 1741}
1754 1742