[PR #2981] [MERGED] texture_cache: Handle overlap with equal address and different tiling mode #3126

Closed
opened 2026-02-27 22:02:31 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2981
Author: @squidbus
Created: 5/23/2025
Status: Merged
Merged: 5/23/2025
Merged by: @squidbus

Base: mainHead: texcache-tiling


📝 Commits (1)

  • 7603d4b texture_cache: Handle overlap with equal address and different tiling mode

📊 Changes

1 file changed (+16 additions, -7 deletions)

View changed files

📝 src/video_core/texture_cache/texture_cache.cpp (+16 -7)

📄 Description

Handles case where we reached the end of equal guest address overlap, the guest_size is greater, the resources count is not, and the tiling mode is different. In this case the address is likely being reused for a different image, so free the cached image and return the current merged image ID.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/2981 **Author:** [@squidbus](https://github.com/squidbus) **Created:** 5/23/2025 **Status:** ✅ Merged **Merged:** 5/23/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `texcache-tiling` --- ### 📝 Commits (1) - [`7603d4b`](https://github.com/shadps4-emu/shadPS4/commit/7603d4b1baf57750869ba700d36682674018aca5) texture_cache: Handle overlap with equal address and different tiling mode ### 📊 Changes **1 file changed** (+16 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/video_core/texture_cache/texture_cache.cpp` (+16 -7) </details> ### 📄 Description Handles case where we reached the end of equal guest address overlap, the `guest_size` is greater, the `resources` count is not, and the tiling mode is different. In this case the address is likely being reused for a different image, so free the cached image and return the current merged image ID. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:02:31 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#3126
No description provided.