mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 12:56:27 -05:00
Merge pull request #10081 from Kelebek1/copy_overlap_tick
Sort overlap_ids by modification tick before copy
This commit is contained in:
commit
0c5bdc7241
1 changed files with 6 additions and 0 deletions
|
@ -1359,6 +1359,12 @@ ImageId TextureCache<P>::JoinImages(const ImageInfo& info, GPUVAddr gpu_addr, VA
|
|||
ScaleDown(new_image);
|
||||
}
|
||||
|
||||
std::ranges::sort(overlap_ids, [this](const ImageId lhs, const ImageId rhs) {
|
||||
const ImageBase& lhs_image = slot_images[lhs];
|
||||
const ImageBase& rhs_image = slot_images[rhs];
|
||||
return lhs_image.modification_tick < rhs_image.modification_tick;
|
||||
});
|
||||
|
||||
for (const ImageId overlap_id : overlap_ids) {
|
||||
Image& overlap = slot_images[overlap_id];
|
||||
if (True(overlap.flags & ImageFlagBits::GpuModified)) {
|
||||
|
|
Loading…
Reference in a new issue