mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 08:15:59 +03:00
[PR #2177] [MERGED] texture_cache: Fix image mip overlap. #2541
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#2541
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/2177
Author: @squidbus
Created: 1/18/2025
Status: ✅ Merged
Merged: 1/18/2025
Merged by: @psucien
Base:
main← Head:fix-mip-overlap📝 Commits (1)
50abf9etexture_cache: Fix image mip overlap.📊 Changes
3 files changed (+7 additions, -6 deletions)
View changed files
📝
src/video_core/renderer_vulkan/vk_rasterizer.cpp(+0 -2)📝
src/video_core/texture_cache/image_info.cpp(+1 -1)📝
src/video_core/texture_cache/image_view.cpp(+6 -3)📄 Description
A check in
IsMipOfwas inverted to return a negative result if tiling is compatible, when it should return a negative result if tiling is not compatible. Additionally, an assert for rebinding color attachments seems to be invalid, as it is not necessarily true that the current state width/height will equal the old image size, if it was not previously the smallest bound attachment.Additionally, I added level and layer info to image view debug names to help my debugging in this process.
Fixes passes in Hedgehog Engine 2 games where an image's base level would be used as a render target, and then subsequent levels would be rendered to from that base to generate mips.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.