[PR #3446] [MERGED] texture_cache: Only queue image downloads if the image address is greater than zero. #3472

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

📋 Pull Request Information

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

Base: mainHead: download-fix


📝 Commits (1)

  • df7e90d Only queue image downloads if the image address is greater than zero.

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 src/video_core/texture_cache/texture_cache.cpp (+2 -1)

📄 Description

If the image address is zero, that means we're trying to download a null image, which causes other issues down the line.

This fixes an issue in Cyberpunk 2077 (CUSA16596) when readbackLinearImages is enabled.

Credits to @squidbus for helping.


🔄 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/3446 **Author:** [@StevenMiller123](https://github.com/StevenMiller123) **Created:** 8/23/2025 **Status:** ✅ Merged **Merged:** 8/23/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `download-fix` --- ### 📝 Commits (1) - [`df7e90d`](https://github.com/shadps4-emu/shadPS4/commit/df7e90d9b79925cc3848d60ff995b5367082709d) Only queue image downloads if the image address is greater than zero. ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/video_core/texture_cache/texture_cache.cpp` (+2 -1) </details> ### 📄 Description If the image address is zero, that means we're trying to download a null image, which causes other issues down the line. This fixes an issue in Cyberpunk 2077 (CUSA16596) when readbackLinearImages is enabled. Credits to @squidbus for helping. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:03:49 +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#3472
No description provided.