mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #236] [MERGED] Recompiler: sampler patching #1415
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#1415
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/236
Author: @psucien
Created: 7/4/2024
Status: ✅ Merged
Merged: 7/4/2024
Merged by: @raphaelthegreat
Base:
main← Head:recompiler/sampler_patching📝 Commits (3)
1de2ea9recompiler: restored bfs in image instruction producers search9633fearecompiler: added pattern check for s# anisotropy modification248d94eadded check if s# comes from constant load (e.g. EUD)📊 Changes
3 files changed (+79 additions, -13 deletions)
View changed files
📝
src/shader_recompiler/ir/passes/resource_tracking_pass.cpp(+67 -9)📝
src/shader_recompiler/runtime_info.h(+2 -0)📝
src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp(+10 -4)📄 Description
In some shaders, a pattern has been observed where the anisotropy setting in S# is reset if a sampled texture lacks mips in its view. To address this issue, this PR introduces a heuristic based on pattern detection. Specifically, if expected sharp fields are accessed, the emitted sampler descriptor will have the
disable_anisoflag set. This allows the runtime to check it later and modify parameters of the bound sampler as needed.Also, restored BFS in search of image instruction producer.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.