summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-02-02 20:10:06 +0100
committerLioncash <mathew1800@gmail.com>2022-02-02 20:37:22 +0100
commit7367e55d1de57cb3f728085cbd0b3393a369150e (patch)
tree1beb0763235a4aaefed046a2e0be16121bd47a3f
parenttexture_cache: Amend unintended bitwise OR in SynchronizeAliases (diff)
downloadyuzu-7367e55d1de57cb3f728085cbd0b3393a369150e.tar
yuzu-7367e55d1de57cb3f728085cbd0b3393a369150e.tar.gz
yuzu-7367e55d1de57cb3f728085cbd0b3393a369150e.tar.bz2
yuzu-7367e55d1de57cb3f728085cbd0b3393a369150e.tar.lz
yuzu-7367e55d1de57cb3f728085cbd0b3393a369150e.tar.xz
yuzu-7367e55d1de57cb3f728085cbd0b3393a369150e.tar.zst
yuzu-7367e55d1de57cb3f728085cbd0b3393a369150e.zip
-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) {
continue;
}
ScaleUp(aliased_image);
-
- const bool both_2d{image.info.type == ImageType::e2D &&
- aliased_image.info.type == ImageType::e2D};
- auto copies = aliased->copies;
- for (auto copy : copies) {
- copy.extent.width = std::max<u32>(
- (copy.extent.width * resolution.up_scale) >> resolution.down_shift, 1);
- if (both_2d) {
- copy.extent.height = std::max<u32>(
- (copy.extent.height * resolution.up_scale) >> resolution.down_shift, 1);
- }
- }
- CopyImage(image_id, aliased->id, copies);
+ CopyImage(image_id, aliased->id, aliased->copies);
}
}