mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #1439] [MERGED] shader_recompiler: patch fmask access instructions #2107
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#2107
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/1439
Author: @LNDF
Created: 10/23/2024
Status: ✅ Merged
Merged: 11/5/2024
Merged by: @psucien
Base:
main← Head:fmask-access📝 Commits (5)
9e2d21fFix multisample texture fetch70a25b8Patch some fmask readsfe7406aclang-formatad9507dAssert insteed of ignore, coordinate fixesf501d13Patch ImageQueryDimensions📊 Changes
5 files changed (+93 additions, -4 deletions)
View changed files
📝
src/shader_recompiler/backend/spirv/emit_spirv_image.cpp(+1 -0)📝
src/shader_recompiler/info.h(+13 -0)📝
src/shader_recompiler/ir/passes/resource_tracking_pass.cpp(+56 -4)📝
src/shader_recompiler/specialization.h(+18 -0)📝
src/video_core/amdgpu/resource.h(+5 -0)📄 Description
Patch some instructions that access fmask image bound to shader.
This PR patches those reads into constant values and removes the binding all together.
Probable we need to patch more opcodes and do some more testing.
Journey now doesn't assert on liverpool_to_vk.cpp. Insteed it crashes further on image.cpp::236 on the following line of code of the VideoCore::Image::Transit function:
I don't think this is related to this PR bu I might be wrong.
More testing with more games that access fmask is needed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.