[PR #139] [MERGED] renderer_vulkan: state tracking for Image resources #1330

Closed
opened 2026-02-27 21:12:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/139
Author: @psucien
Created: 5/17/2024
Status: Merged
Merged: 5/17/2024
Merged by: @psucien

Base: mainHead: render_vk/img_state_trk


📝 Commits (1)

  • 85704e2 renderer_vulkan: state tracking for Image resources

📊 Changes

4 files changed (+60 additions, -71 deletions)

View changed files

📝 src/video_core/renderer_vulkan/renderer_vulkan.cpp (+14 -25)
📝 src/video_core/texture_cache/image.cpp (+33 -19)
📝 src/video_core/texture_cache/image.h (+8 -1)
📝 src/video_core/texture_cache/texture_cache.cpp (+5 -26)

📄 Description

This PR adds functionality to track previous layout, access mask and PL stage for a Vulkan image. So instead of specifying barriers, we can do a simple Transit() call to change the resource state to desired.


🔄 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/139 **Author:** [@psucien](https://github.com/psucien) **Created:** 5/17/2024 **Status:** ✅ Merged **Merged:** 5/17/2024 **Merged by:** [@psucien](https://github.com/psucien) **Base:** `main` ← **Head:** `render_vk/img_state_trk` --- ### 📝 Commits (1) - [`85704e2`](https://github.com/shadps4-emu/shadPS4/commit/85704e26a00669383e41980b14f951d6540e7d47) renderer_vulkan: state tracking for `Image` resources ### 📊 Changes **4 files changed** (+60 additions, -71 deletions) <details> <summary>View changed files</summary> 📝 `src/video_core/renderer_vulkan/renderer_vulkan.cpp` (+14 -25) 📝 `src/video_core/texture_cache/image.cpp` (+33 -19) 📝 `src/video_core/texture_cache/image.h` (+8 -1) 📝 `src/video_core/texture_cache/texture_cache.cpp` (+5 -26) </details> ### 📄 Description This PR adds functionality to track previous layout, access mask and PL stage for a Vulkan image. So instead of specifying barriers, we can do a simple `Transit()` call to change the resource state to desired. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:12:07 +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#1330
No description provided.