mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 07:46:01 +03:00
[PR #1451] [CLOSED] texture_cache: Implement subresource specific uploads #2117
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#2117
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/1451
Author: @raphaelthegreat
Created: 10/26/2024
Status: ❌ Closed
Base:
main← Head:subres-up📝 Commits (3)
54cae5dcmake: Enable userfaultfd7702cebtexture_cache: Subresource uploadsdc5b856vk_compute_pipeline: Add missed meta check📊 Changes
7 files changed (+94 additions, -22 deletions)
View changed files
📝
CMakeLists.txt(+7 -0)📝
src/video_core/amdgpu/liverpool.cpp(+1 -1)📝
src/video_core/page_manager.cpp(+1 -1)📝
src/video_core/renderer_vulkan/vk_compute_pipeline.cpp(+17 -2)📝
src/video_core/texture_cache/image.cpp(+3 -0)📝
src/video_core/texture_cache/image.h(+16 -0)📝
src/video_core/texture_cache/texture_cache.cpp(+49 -18)📄 Description
It is a common pattern for games to clear specific subresources of an image (either a mipmap or a layer). Bloodborne renders to an texture cube by individually clearing the faces with compute dispatches and rendering to them. Red Dead Redemption clears the first mipmap of images that have many. Without this handling subsequent usages of said image can either clear subresources that were rendered or trash the image with cpu data if a gpu buffer doesn't happen to cover the entire image size.
Before merging, support for images with more than 64 subresources needs to be added (will trigger an assert for now).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.